pandoc-1.6.0.1: 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.

anyHtmlTag :: GenParser Char ParserState [Char]Source

Parse any HTML tag (opening or self-closing) and return text of tag

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

Parse an end tag of type tag

extractTagType :: String -> StringSource

Extract type from a tag: e.g. br from <br>

htmlComment :: GenParser Char st [Char]Source

Parses an HTML comment.

unsanitaryURI :: String -> BoolSource

Returns True if the specified URI is potentially a security risk.