Copyright | Copyright (C) 2006-2019 John MacFarlane |
---|---|
License | GNU GPL, version 2 or above |
Maintainer | John MacFarlane <jgm@berkeley.edu> |
Stability | alpha |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Conversion of HTML to Pandoc
document.
Synopsis
- readHtml :: PandocMonad m => ReaderOptions -> Text -> m Pandoc
- htmlTag :: (HasReaderOptions st, Monad m) => (Tag String -> Bool) -> ParserT [Char] st m (Tag String, String)
- htmlInBalanced :: (HasReaderOptions st, Monad m) => (Tag String -> Bool) -> ParserT String st m String
- isInlineTag :: NamedTag (Tag a) => Tag a -> Bool
- isBlockTag :: NamedTag (Tag a) => Tag a -> Bool
- class NamedTag a where
- getTagName :: a -> Maybe Text
- isTextTag :: Tag a -> Bool
- isCommentTag :: Tag a -> Bool
Documentation
:: PandocMonad m | |
=> ReaderOptions | Reader options |
-> Text | String to parse (assumes |
-> m Pandoc |
Convert HTML-formatted string to Pandoc
document.
htmlTag :: (HasReaderOptions st, Monad m) => (Tag String -> Bool) -> ParserT [Char] st m (Tag String, String) Source #
Matches a tag meeting a certain condition.
htmlInBalanced :: (HasReaderOptions st, Monad m) => (Tag String -> Bool) -> ParserT String st m String Source #
Matches a stretch of HTML in balanced tags.
isCommentTag :: Tag a -> Bool Source #