commonmark-simple-0.1.0.0: Simple interface to commonmark-hs
Safe HaskellNone
LanguageHaskell2010

Commonmark.Simple

Synopsis

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