scholdoc-0.1.3: Converts ScholarlyMarkdown documents to HTML5/LaTeX/Docx format

CopyrightCopyright (C) 2006-2014 John MacFarlane
LicenseGNU GPL, version 2 or above
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Stabilityalpha
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Text.Pandoc.XML

Description

Functions for escaping and formatting XML.

Synopsis

Documentation

escapeCharForXML :: Char -> String Source

Escape one character as needed for XML.

escapeStringForXML :: String -> String Source

Escape string as needed for XML. Entity references are not preserved.

inTags :: Bool -> String -> [(String, String)] -> Doc -> Doc Source

Put the supplied contents between start and end tags of tagType, with specified attributes and (if specified) indentation.

selfClosingTag :: String -> [(String, String)] -> Doc Source

Return a self-closing tag of tagType with specified attributes

inTagsSimple :: String -> Doc -> Doc Source

Put the supplied contents between start and end tags of tagType.

inTagsIndented :: String -> Doc -> Doc Source

Put the supplied contents in indented block btw start and end tags.

toEntities :: String -> String Source

Escape all non-ascii characters using numerical entities.