4 ms·
Marked.js is a markdown parser built for speed
- deleted 15y ago[deleted]
- lucisferre 15y agoCurious, I realize this is a node module, but is there any reason I couldn't be run directly in the browser (I'd go through the code and try it myself, but it's bed time for me).
- dmix 15y ago"It is also now fully compatible with the client-side." From the documentation.
- charliesome 15y agoI'm curious why you'd write something like this in Javascript if you're aiming for performance. 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.
- pavlov 15y agoThe benchmark posted in the project's readme shows that it's nearly as fast as Discount, which is a Markdown parser written in plain C. You underestimate modern JS engines.
- ufo 15y agoIts not "built for speed". Its build for speed and for the browser.
- thetrendycyborg 15y agoand for node. And it's almost as fast as a C implementation. JS isn't terrible, you know. People just never learn it because it's confusing. It's more similar to lisp than to C, except for the syntax. And built for speed doesn't mean "the fastest." It just means within this implementation the goal was speed.
- Void_ 15y agoThe benchmark is very impressive. Thanks for this!