CommonMark AST to CommonMark text in JavaScript?


#1

Is anyone aware of work to generate CommonMark from a CommonMark AST? I’d like to generate “Markdown” from my own internal data and I think it would be easier (if such a thing exists) to convert my data into the CommonMark AST and then run a renderer over it to get to CommonMark plain text format.

Jesse


#2

+++ jessegrosjean [Mar 04 15 22:07 ]:

[1]jessegrosjean
March 4

Is anyone aware of work to generate CommonMark from a CommonMark AST?
I’d like to generate “Markdown” from my own internal data and I think
it would be easier (if such a thing exists) to convert my data into the
CommonMark AST and then run a renderer over it to get to CommonMark
plain text format.

Jesse

I did hear from someone who is doing this, but I can’t put my finger on the email.

I plan to add a CommonMark renderer to cmark at some point, but maybe you’ll beat me to it.