Download Manual

Transcript
– a quoted paragraph in a markdown document
• HRule :: MarkdownElem
HRule
– a hoirzontal rule in a markdown document
• Header :: Int → String → MarkdownElem
Header l s
– a level l header with title s in a markdown document
Exported functions:
fromMarkdownText :: String → [MarkdownElem]
Parse markdown document from its textual representation.
removeEscapes :: String → String
Remove the backlash of escaped markdown characters in a string.
markdownEscapeChars :: String
Escape characters supported by markdown.
markdownText2HTML :: String → [HtmlExp]
Translate a markdown text into a (partial) HTML document.
markdownText2CompleteHTML :: String → String → String
Translate a markdown text into a complete HTML text that can be viewed as a standalone document by a browser. The first argument is the title of the document.
markdownText2LaTeX :: String → String
Translate a markdown text into a (partial) LaTeX document. All characters with a
special meaning in LaTeX, like dollar or ampersand signs, are quoted.
markdownText2LaTeXWithFormat :: (String → String) → String → String
Translate a markdown text into a (partial) LaTeX document where the first argument is
a function to translate the basic text occurring in markdown elements to a LaTeX string.
For instance, one can use a translation operation that supports passing mathematical
formulas in LaTeX style instead of quoting all special characters.
markdownText2CompleteLaTeX :: String → String
Translate a markdown text into a complete LaTeX document that can be formatted as
a standalone document.
formatMarkdownInputAsPDF :: IO ()
Format the standard input (containing markdown text) as PDF.
formatMarkdownFileAsPDF :: String → IO ()
Format a file containing markdown text as PDF.
214