Copyright | Copyright (C) 2007 Galois Inc. 2021-2024 John MacFarlane |
---|---|
License | GNU GPL, version 2 or above |
Maintainer | John MacFarlane <[email protected]> |
Stability | alpha |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Text.Pandoc.XML.Light.Output
Description
This code is based on code from xml-light, released under the BSD3 license. We use a text Builder instead of ShowS.
Synopsis
- ppTopElement :: Element -> Text
- ppElement :: Element -> Text
- ppContent :: Content -> Text
- ppcElement :: ConfigPP -> Element -> Text
- ppcContent :: ConfigPP -> Content -> Text
- showTopElement :: Element -> Text
- showElement :: Element -> Text
- showContent :: Content -> Text
- useShortEmptyTags :: (QName -> Bool) -> ConfigPP -> ConfigPP
- defaultConfigPP :: ConfigPP
- data ConfigPP = ConfigPP {
- shortEmptyTag :: QName -> Bool
- prettify :: Bool
Replacement for xml-light's Text.XML.Output
ppTopElement :: Element -> Text Source #
Pretty printing renders XML documents faithfully, with the exception that whitespace may be added/removed in non-verbatim character data.
showElement :: Element -> Text Source #
showContent :: Content -> Text Source #
defaultConfigPP :: ConfigPP Source #
Default pretty orinting configuration. * Always use abbreviate empty tags.