pandoc-1.8.1.1: Conversion between markup formatsSource codeContentsIndex
Text.Pandoc.Readers.HTML
Portabilityportable
Stabilityalpha
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Description
Conversion of HTML to Pandoc document.
Synopsis
readHtml :: ParserState -> String -> Pandoc
htmlTag :: (Tag String -> Bool) -> GenParser Char ParserState (Tag String, String)
htmlInBalanced :: (Tag String -> Bool) -> GenParser Char ParserState String
isInlineTag :: Tag String -> Bool
isBlockTag :: Tag String -> Bool
isTextTag :: Tag String -> Bool
isCommentTag :: Tag String -> Bool
Documentation
readHtmlSource
:: ParserStateParser state
-> StringString to parse (assumes '\n' line endings)
-> Pandoc
Convert HTML-formatted string to Pandoc document.
htmlTag :: (Tag String -> Bool) -> GenParser Char ParserState (Tag String, String)Source
Matches a tag meeting a certain condition.
htmlInBalanced :: (Tag String -> Bool) -> GenParser Char ParserState StringSource
Matches a stretch of HTML in balanced tags.
isInlineTag :: Tag String -> BoolSource
isBlockTag :: Tag String -> BoolSource
isTextTag :: Tag String -> BoolSource
isCommentTag :: Tag String -> BoolSource
Produced by Haddock version 2.6.1