Marked.js is a markdown parser built for speed
github.com
github.com
From the documentation.
There's nothing wrong with using Javascript for a Markdown parser but if it's supposed to be 'built for speed', you'd be better off using a lower level language.
And built for speed doesn't mean "the fastest." It just means within this implementation the goal was speed.