I found the alternative of Markdown parser for NodeJS. It is markdown-js.
Like description of that repository said, markdown-js is
- Producing well-formed HTML. This means that
strong nesting is important, as is the ability to output as both HTML and XHTML
- Having an intermediate representation to allow processing of parsed data (we in fact have two, both JsonML: a markdown tree and an HTML tree)
- Being easily extensible to add new dialects without having to rewrite the entire parsing mechanics
- Having a good test suite. The only test suites we could find tested massive blocks of input, and passing depended on outputting the HTML with exactly the same whitespace as the original implementation
taken from this source.
This node package only supports
You may point out how to test/perform parser from Markdown to HTML. I recommend to read the basic usage at here.