pandoc-3.2.1: Conversion between markup formats
CopyrightCopyright (C) 2006-2024 John MacFarlane
LicenseGNU GPL, version 2 or above
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Stabilityalpha
Portabilityportable
Safe HaskellSafe-Inferred
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) -> ParsecT Sources st m (Tag Text, Text) Source #

Matches a tag meeting a certain condition.

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

Matches a stretch of HTML in balanced tags.