Copyright | Copyright (C) 2006-2024 John MacFarlane |
---|---|
License | GNU GPL, version 2 or above |
Maintainer | John MacFarlane <jgm@berkeley.edu> |
Stability | alpha |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Conversion of HTML to Pandoc
document.
Synopsis
- readHtml :: (PandocMonad m, ToSources a) => ReaderOptions -> a -> m Pandoc
- htmlTag :: (HasReaderOptions st, Monad m) => (Tag Text -> Bool) -> ParsecT Sources st m (Tag Text, Text)
- htmlInBalanced :: Monad m => (Tag Text -> Bool) -> ParsecT Sources st m Text
- isInlineTag :: Tag Text -> Bool
- isBlockTag :: Tag Text -> Bool
- isTextTag :: Tag Text -> Bool
- isCommentTag :: Tag Text -> Bool
- toAttr :: [(Text, Text)] -> Attr
Documentation
:: (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.