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 st [Char]
- extractTagType :: String -> String
- htmlBlockElement :: GenParser Char ParserState [Char]
- unsanitaryURI :: String -> Bool
Documentation
:: ParserState | Parser state |
-> String | String to parse |
-> 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
extractTagType :: String -> StringSource
Extract type from a tag: e.g. br
from <br>
unsanitaryURI :: String -> BoolSource
Returns True
if the specified URI is potentially a security risk.