I've tried installing the comrak
crate, which does support parsing Markdown, modifying the nodes and translating them back to CommonMark (which was not exactly what I was looking for, since I wanted Markdown back and not the CommonMark spec.), however comrak
seems to be stuck when rustc compiles it, so I gave up on comrak
.
I know markdown-it
will allow me to parse and modify the nodes, but it doesn't render back to Markdown as far as I know.
I need to modify the nodes basically to fix image links. Also nice to convert HTML tags to Markdown equivalent syntax when possible.
Any ideas of another crate?