Portability | portable |
---|---|
Stability | alpha |
Maintainer | John MacFarlane <jgm@berkeley.edu> |
Conversion of HTML to Pandoc
document.
- readHtml :: ParserState -> String -> Pandoc
- rawHtmlInline :: ParsecT [Char] ParserState Identity 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 :: ParsecT [Char] ParserState Identity [Char]
Documentation
:: ParserState | Parser state |
-> String | String to parse |
-> Pandoc |
Convert HTML-formatted string to Pandoc
document.
extractTagType :: String -> StringSource
Returns True
if sanitization is specified and the specified tag is
not on the sanitized tag list.
returns True
if sanitization is specified and the specified attribute
is not on the sanitized attribute list.
Read blocks until end tag.
Read inlines until end tag.
Parse blocks between open and close tag.
Parse inlines between open and close tag.
Extract type from a tag: e.g. br
from <br>