News for hackers. Stuff that matters.
Re:Show HN: Markdown Guide by adtac on Monday January 15, 2018 @07:29AM (#16150080)
This is really useful, thanks!

Is there a subset of markdown (preferably with an implementation in Javascript to render it as HTML) that's limited to just the basic stuff like bold, underline, italics, links, quotes, and code elements? I don't need images, headers, html tags, tables, horizontal lines and the rest.

It's not so much about the restrictions I'm worried about. My research has shown that showdownjs is one of the lightest (~30kB) markdown to HTML rendering libraries in JS, but 30kB is still too large for my application. I would trade the above mentioned features for a smaller file size.

Any suggestions? I know that I can probably write my own implementation, but I'd rather rely on battle-tested libraries instead of rolling out my own.

Re:Show HN: Markdown Guide by hurricaneSlider on Monday January 15, 2018 @12:09PM (#16151766)
Why not use one of the pleorhora of static markdown renderers and serve vanilla HTML if you're the bandwidth constrained?
Re:Show HN: Markdown Guide by adtac on Monday January 15, 2018 @01:08PM (#16152216)
It has to be dynamically generated because I don't control the content. Also, having the markdown makes it easier to edit and update.

Maybe I should look into serving both the markdown AND the HTML.

Re:Show HN: Markdown Guide by jeremy_wiebe on Monday January 15, 2018 @09:50AM (#16150807)
Nice work!!

I just noticed but there’s an unfortunate naming collision in this space. “Remark” mentioned in the article is a presentation generator [1].

The name also refers to a very awesome, pluggable framework for processing markdown text [2].

I don’t know if they’re related but that’s very confusing.

1 - https://github.com/gnab/remark

2 - http://remark.js.org

Re:Show HN: Markdown Guide by secfirstmd on Monday January 15, 2018 @12:14PM (#16151805)
Thanks for doing this.

It would be great if there was an explainer that simply had comparisons between different flares of MD - e.g Github flavoured. We are working on an open source project with 80k words in MD at the moment an the small syntax stuff is a nightmare.

Re:Show HN: Markdown Guide by mcone on Monday January 15, 2018 @08:26PM (#16155068)
Thanks for the suggestion. I agree with you! I've started working on something similar to what you've described, but it's going to take me some time -- it's an enormous undertaking.

In the meantime, you might want to check out this tool: http://johnmacfarlane.net/babelmark2

Re:Show HN: Markdown Guide by secfirstmd on Monday January 15, 2018 @09:01PM (#16155200)
Thanks that would be really really helpful. We deal with all kinds of volunteer translators and are always having trouble and mess ups because of it. Having somewhere to point them to would be great!

Also thanks for the tool. Great suggestion!

Re:Show HN: Markdown Guide by brianjking on Monday January 15, 2018 @04:03PM (#16153422)
Re:Show HN: Markdown Guide by mcone on Monday January 15, 2018 @08:20PM (#16155047)
Thanks! I've merged it.
Re:Show HN: Markdown Guide by appleton34 on Monday January 15, 2018 @02:30AM (#16149128)
thank you for putting this together