Open dahlia opened 2 years 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.
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.