commonmark-hs
commonmark-hs copied to clipboard
Rendering commonmark
It seems like it is currently impossible to edit/produce markdown in a structured way.
For example going through and deleting all raw html.
There is no commonmark renderer in this library.
The library does, however, track source positions of everything. You could use that to delete sections from the original file if you wanted to delete all raw HTML.
Note also that pandoc (which uses this library now) can render commonmark, and you can write lua filters for easy manipulation of the AST.