pandoc-1.13: Conversion between markup formats

Portabilityportable
Stabilityalpha
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Safe HaskellNone

Text.Pandoc.Readers.HTML

Description

Conversion of HTML to Pandoc document.

Synopsis

Documentation

readHtmlSource

Arguments

:: ReaderOptions

Reader options

-> String

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

-> Pandoc 

Convert HTML-formatted string to Pandoc document.

htmlTag :: Monad m => (Tag String -> Bool) -> ParserT [Char] st m (Tag String, String)Source

Matches a tag meeting a certain condition.

htmlInBalanced :: Monad m => (Tag String -> Bool) -> ParserT String st m StringSource

Matches a stretch of HTML in balanced tags.