dahlia / submark

Extract a part from CommonMark/Markdown docs
https://hackage.haskell.org/package/submark
GNU General Public License v3.0
6 stars 1 forks source link

GitHub Flavored Markdown #5

Open dahlia opened 2 years ago

dahlia commented 2 years ago

It would be useful if it supports several widely adopted CommonMark extensions like GitHub Flavored Markdown. It would be ideal if it can opt-in and opt-out each extension like -x table -x task -x strikethrough -x autolink, but it's good enough if it allows turn on and off the complete set of GFM.

See also the cmark-gfm package.

dahlia commented 1 year ago

Apparently cmark-gfm's nodeToCommonmark does not cover every node type. For example, tables can be parsed to AST nodes, but they cannot be reverted from AST nodes to CommonMark text.

Might be worth to survey another implementations such as commonmark-hs.