pandoc-1.8.1.2: Conversion between markup formats

Portabilityportable
Stabilityalpha
MaintainerJohn MacFarlane <jgm@berkeley.edu>

Text.Pandoc.Readers.HTML

Description

Conversion of HTML to Pandoc document.

Synopsis

Documentation

readHtmlSource

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)Source

Matches a tag meeting a certain condition.

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

Matches a stretch of HTML in balanced tags.