commonmark-hs icon indicating copy to clipboard operation
commonmark-hs copied to clipboard

Rendering commonmark

Open tysonzero opened this issue 3 years ago • 1 comments

It seems like it is currently impossible to edit/produce markdown in a structured way.

For example going through and deleting all raw html.

tysonzero avatar Sep 28 '20 10:09 tysonzero

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.

jgm avatar Sep 28 '20 18:09 jgm