Gnome Builder: why Markdown preview plugin prefers a JS parser/converter?


is it correct that marked.js - javascript is used in Builder’s Markdown Preview plugin? Why not something C-based like md4c or cmark?

I try to understand the rationale behind this choice as I plan to implement a (live) preview window for another markup syntax. I’ll have to tune a markdown parser/converter in order to achieve this, so I would like to use something dependable and I don’t know JavaScript. Something C-based seems to be more suitable for a C-based/GTK-based app, isn’t it?

Which other Markdown-to-HTML converters would you recommend for a GtkSourceView/WebkitGTK based project aiming at providing (live) preview?

Thank you!