News for hackers. Stuff that matters.
Re:Show HN: A module that parses markdown into html || Node.js by gitgud on Sunday April 08, 2018 @04:21AM (#16785196)
Hey man, have you heard of JsTranformer's [1] they're a standard way of parsing strings in and out of different formats. Markdown-it [2] seems to do this too.

[1] https://www.npmjs.com/package/jstransformer

[2] https://github.com/jstransformers/jstransformer-markdown-it

Re:Show HN: A module that parses markdown into html || Node.js by hashkb on Sunday April 08, 2018 @10:31AM (#16786222)
That seems overkill... to ask any js lib author who transforms a string to another string to use this API. The async version doesn't even use promises, so can't be `await`ed... why should anyone choose to do this?

Edit: Kay it returns promises, but still, overkill.

Re:Show HN: A module that parses markdown into html || Node.js by gitgud on Sunday April 08, 2018 @11:36AM (#16786559)
Just curious, what makes this so overkill? I'm not a lib author but it seems pretty lightweight to me.
Re:Show HN: A module that parses markdown into html || Node.js by talonbragg on Monday April 09, 2018 @09:57AM (#16792971)
Yeah idk it is two functions and only one of them has a promise.