Copyright | Copyright (C) 2006-2014 John MacFarlane |
---|---|
License | GNU GPL, version 2 or above |
Maintainer | John MacFarlane <jgm@berkeley.edu> |
Stability | alpha |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
Conversion of HTML to Pandoc
document.
- readHtml :: ReaderOptions -> String -> Pandoc
- htmlTag :: (Tag String -> Bool) -> Parser [Char] st (Tag String, String)
- htmlInBalanced :: (Tag String -> Bool) -> Parser [Char] ParserState String
- isInlineTag :: Tag String -> Bool
- isBlockTag :: Tag String -> Bool
- isTextTag :: Tag String -> Bool
- isCommentTag :: Tag String -> Bool
Documentation
:: ReaderOptions | Reader options |
-> String | String to parse (assumes |
-> Pandoc |
Convert HTML-formatted string to Pandoc
document.
htmlTag :: (Tag String -> Bool) -> Parser [Char] st (Tag String, String)
Matches a tag meeting a certain condition.
htmlInBalanced :: (Tag String -> Bool) -> Parser [Char] ParserState String
Matches a stretch of HTML in balanced tags.
isInlineTag :: Tag String -> Bool
isBlockTag :: Tag String -> Bool
isCommentTag :: Tag String -> Bool