pandoc-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

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

htmlEndTag :: [Char] -> GenParser Char st [Char]Source

Parse an end tag of type 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.