pandoc-2.15: Conversion between markup formats
CopyrightCopyright (C) 2006-2021 John MacFarlane
LicenseGNU GPL, version 2 or above
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Stabilityalpha
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Text.Pandoc.Readers.HTML

Description

Conversion of HTML to Pandoc document.

Synopsis

Documentation

readHtml Source #

Arguments

:: (PandocMonad m, ToSources a) 
=> ReaderOptions

Reader options

-> a

Input to parse

-> m Pandoc 

Convert HTML-formatted string to Pandoc document.

htmlTag :: (HasReaderOptions st, Monad m) => (Tag Text -> Bool) -> ParserT Sources st m (Tag Text, Text) Source #

Matches a tag meeting a certain condition.

htmlInBalanced :: Monad m => (Tag Text -> Bool) -> ParserT Sources st m Text Source #

Matches a stretch of HTML in balanced tags.