getify / emdash

Simple blogging with node/iojs + GitHub.
36 stars 1 forks source link

Investigate Markdown renderers #1

Open dotproto opened 9 years ago

dotproto commented 9 years ago

Look into Node.js/JavaScript renderers for Markdown. An ideal MD renderer would also include a robust syntax highlighter and minimal dependencies.

https://twitter.com/getify/status/668919171334311938

dotproto commented 9 years ago

Here's a quick list of several MD parsers out there.

@getify, I'd be happy to do some kind of feature comparison if there are specific features you require, desire, or would be nice to have.

dotproto commented 8 years ago

Do you need/want/expect GFM?

Remarkable seems like a solid option. I played around with their demos and read through a bit of their docs and I like what I see so far. One of the things that's really attractive to me is it's extensions support. Assuming emdash used it, that would presumably let bloggers customize their authoring environment to fit their needs. For example, if a blogger commonly linked to Github projects they could create custom syntax to make that much easier/faster.

getify commented 8 years ago

Yep, since we're building this on top of github, that's the most logical flavor of markdown to support by default.

Of course, if it was possible to make renderers pluggable so someone could swap in a different one with a different flavor, that'd be great.

BTW, github's API has a "render GFM" endpoint: https://developer.github.com/v3/markdown/ So that seems like at least a plausible option, just to roll our own usage on top of that API as the default.