Portability | portable |
---|---|
Stability | alpha |
Maintainer | John MacFarlane <jgm@berkeley.edu> |
Conversion of HTML to Pandoc
document.
- 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
:: ParserState | Parser state |
-> String | String to parse (assumes |
-> Pandoc |
Convert HTML-formatted string to Pandoc
document.
anyHtmlTag :: GenParser Char ParserState [Char]Source
Parse any HTML tag (opening or self-closing) and return text of tag
htmlEndTag :: [Char] -> GenParser Char ParserState [Char]Source
Parse an end tag of type tag
extractTagType :: String -> StringSource
Extract type from a tag: e.g. br
from <br>
htmlComment :: GenParser Char st [Char]Source
Parses an HTML comment.
unsanitaryURI :: String -> BoolSource
Returns True
if the specified URI is potentially a security risk.