pandoc-2.11.0.3: Conversion between markup formats

CopyrightCopyright (C) 2006-2020 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 
=> ReaderOptions

Reader options

-> Text

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

-> m Pandoc 

Convert HTML-formatted string to Pandoc document.

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

Matches a tag meeting a certain condition.

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

Matches a stretch of HTML in balanced tags.

class NamedTag a where Source #

Methods

getTagName :: a -> Maybe Text Source #

Instances
NamedTag (Tag String) Source # 
Instance details

Defined in Text.Pandoc.Readers.HTML

NamedTag (Tag Text) Source # 
Instance details

Defined in Text.Pandoc.Readers.HTML