Safe Haskell | None |
---|---|
Language | Haskell2010 |
Commonmark.Simple
Synopsis
- parseMarkdownWithFrontMatter :: forall meta m il bl. (FromJSON meta, m ~ Either ParseError, bl ~ Cm () Blocks, il ~ Cm () Inlines) => SyntaxSpec m il bl -> FilePath -> Text -> Either Text (Maybe meta, Pandoc)
- parseMarkdown :: FilePath -> Text -> Either Text Pandoc
- fullMarkdownSpec :: SyntaxSpec' m il bl => SyntaxSpec m il bl
Documentation
parseMarkdownWithFrontMatter Source #
Arguments
:: forall meta m il bl. (FromJSON meta, m ~ Either ParseError, bl ~ Cm () Blocks, il ~ Cm () Inlines) | |
=> SyntaxSpec m il bl | |
-> FilePath | Path to file associated with this Markdown |
-> Text | Markdown text to parse |
-> Either Text (Maybe meta, Pandoc) |
Parse a Markdown file using commonmark-hs with all extensions enabled
fullMarkdownSpec :: SyntaxSpec' m il bl => SyntaxSpec m il bl Source #
GFM + official commonmark extensions