pandoc-1.9.3: Conversion between markup formats

Portabilityportable
Stabilityalpha
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Safe HaskellSafe-Infered

Text.Pandoc.Readers.HTML

Description

Conversion of HTML to Pandoc document.

Synopsis

Documentation

readHtml

Arguments

:: ParserState

Parser state

-> String

String to parse (assumes '\n' line endings)

-> Pandoc 

Convert HTML-formatted string to Pandoc document.

htmlTag :: (Tag String -> Bool) -> GenParser Char ParserState (Tag String, String)

Matches a tag meeting a certain condition.

htmlInBalanced :: (Tag String -> Bool) -> GenParser Char ParserState String

Matches a stretch of HTML in balanced tags.