| pandoc-1.6: Conversion between markup formats | Source code | Contents | Index

Text.Pandoc.Readers.HTML

Portability | portable
Stability | alpha
Maintainer | John MacFarlane <jgm@berkeley.edu>

Description
Conversion of HTML to `Pandoc` document.
Synopsis

readHtml :: ParserState -> String -> Pandoc
rawHtmlInline :: GenParser Char ParserState Inline
rawHtmlBlock :: GenParser Char ParserState Block
anyHtmlBlockTag :: GenParser Char ParserState [Char]
anyHtmlInlineTag :: GenParser Char ParserState [Char]
anyHtmlTag :: GenParser Char ParserState [Char]
anyHtmlEndTag :: GenParser Char ParserState [Char]
htmlEndTag :: [Char] -> GenParser Char ParserState [Char]
extractTagType :: String -> String
htmlBlockElement :: GenParser Char ParserState [Char]
htmlComment :: GenParser Char st [Char]
unsanitaryURI :: String -> Bool

Documentation

readHtml | Source

:: ParserState | Parser state
-> String | String to parse (assumes `'\n'` line endings)
-> Pandoc |
Convert HTML-formatted string to `Pandoc` document.

rawHtmlInline :: GenParser Char ParserState Inline | Source

rawHtmlBlock :: GenParser Char ParserState Block | Source

anyHtmlBlockTag :: GenParser Char ParserState [Char] | Source

anyHtmlInlineTag :: GenParser Char ParserState [Char] | Source

anyHtmlTag :: GenParser Char ParserState [Char] | Source

Parse any HTML tag (opening or self-closing) and return text of tag

anyHtmlEndTag :: GenParser Char ParserState [Char] | Source

htmlEndTag :: [Char] -> GenParser Char ParserState [Char] | Source

Parse an end tag of type tag

extractTagType :: String -> String | Source

Extract type from a tag: e.g. `br` from `<br>`

htmlBlockElement :: GenParser Char ParserState [Char] | Source

htmlComment :: GenParser Char st [Char] | Source

Parses an HTML comment.

unsanitaryURI :: String -> Bool | Source

Returns `True` if the specified URI is potentially a security risk.
Produced by Haddock version 2.4.2