DEV Community

Discussion on: Time to build a markdown parser and processor (MDL Log #1)

Collapse
 
vberlier profile image
Valentin Berlier

You should definitely take a look at markdown-it. It lets you write plugins through which you can create syntax extensions, access the AST, and from there you can basically make it do anything.

Collapse
 
mortoray profile image
edA‑qa mort‑ora‑y

It does not appear to support the multiple output case that I want. It's focused on rendering to HTML. I really want an accessible high-level tree where I can do abstract operations and lower to any output format.

Note that I currently use pyMarkdown which also offers extensions. And I've used other packages. I'm not keen on going down another path which isn't guaranteed to do what I want.