News for hackers. Stuff that matters.
Re:You are not required to close your <p>, <li>, <img>, or <... by bazoom42 on Sunday January 11, 2026 @07:44AM (#46575276)
Why did markdown become popular when we already have html? Because markdown is much easier to write by hand in a simple text editor.

Original SGML was actually closer to markdown. It had various options to shorten and simplify the syntax, making it easy to write and edit by hand, while still having an unambiguous structure.

The verbose and explicit structure of xhtml makes it easier to process by tools, but more tedious for humans.

Re:You are not required to close your <p>, <li>, <img>, or <... by oneeyedpigeon on Sunday January 11, 2026 @09:56AM (#46576241)
Is it really that much easier to write `<br>` and know that it isn't a problem, than just write `<br />`?
Re:You are not required to close your <p>, <li>, <img>, or <... by barnabee on Sunday January 11, 2026 @11:01AM (#46576842)
It’s much easier to have to remember fewer rules and for things to be ok if you get some wrong, yes.

Especially for casual users of HTML.

Re:You are not required to close your <p>, <li>, <img>, or <... by epgui on Sunday January 11, 2026 @11:56AM (#46577365)
Bad reasoning.

“Always close your tags” is a simpler rule (and fewer rules, depending how you count) than “Close your tags, except possibly in situations A, B, C…”.

Re:You are not required to close your <p>, <li>, <img>, or <... by intrasight on Sunday January 11, 2026 @12:27PM (#46577629)
I've been closing my tags for 30 years and I assume that I will for the rest of my days. I like that it validates as XML. Historically I used XSLT a LOT.
Re:You are not required to close your <p>, <li>, <img>, or <... by eastbound on Sunday January 11, 2026 @04:03PM (#46580048)
It triggers the linters so often. I shall keep my <input> tag open.
Re:You are not required to close your <p>, <li>, <img>, or <... by TZubiri on Sunday January 11, 2026 @12:07PM (#46577484)
But learning about self closing tags is an additional rule
Re:You are not required to close your <p>, <li>, <img>, or <... by wizzwizz4 on Sunday January 11, 2026 @02:43PM (#46579156)
<script /> is invalid HTML, and <img></img> is also invalid HTML. There's no way to avoid knowing HTML syntax.
Re:You are not required to close your <p>, <li>, <img>, or <... by Pxtl on Sunday January 11, 2026 @11:08AM (#46576904)
Imho the real strength of markdown is it forces people to stick to classes instead of styling. "I want to write in red comic Sans" " I don't care, you can't".

And markdown tables are harder to write than HTML tables. However, they are generally easier to read. Unless multi line cell.

Re:You are not required to close your <p>, <li>, <img>, or <... by jbaber on Sunday January 11, 2026 @11:20AM (#46577012)
I usually just write html tables, then convert to markdown via pandoc. It's a crazy world we live in.
Re:You are not required to close your <p>, <li>, <img>, or <... by nathankleyn on Sunday January 11, 2026 @11:44AM (#46577258)
Personally I think Markdown got _really_ popular not because it is easier to write but because it is easier to read.

It’s kind of a huge deal that I can give a Markdown file of plain text content to somebody non-technical and they aren’t overwhelmed by it in raw form.

HTML fails that same test.

Re:You are not required to close your <p>, <li>, <img>, or <... by epolanski on Sunday January 11, 2026 @12:08PM (#46577491)
Or because it was the default in GitHub with an ad hoc renderer.
Re:You are not required to close your <p>, <li>, <img>, or <... by stouset on Sunday January 11, 2026 @12:19PM (#46577567)
Markdown has been extremely popular since far before GitHub existed.
Re:You are not required to close your <p>, <li>, <img>, or <... by thrdbndndn on Sunday January 11, 2026 @01:54PM (#46578552)
I'm sure Markdown was already popular, but I agree with the OP that GitHub made it orders of magnitude more popular.

Previously its popularity was somewhat similar to RST.

Re:You are not required to close your <p>, <li>, <img>, or <... by epolanski on Sunday January 11, 2026 @12:20PM (#46577575)
Sure, but it became kind of the default with GitHub taking a lead position in code repository services.
Re:You are not required to close your <p>, <li>, <img>, or <... by singingbard on Sunday January 11, 2026 @01:27PM (#46578193)
People had already ditched writing HTML for years before Markdown came out.

People were just using other markup languages like rST.

Other attempts had already proven HTML to be a bad language for rough documentation. Someone then just needed to write a spec that was easy to implement and Markdown was that.

Re:You are not required to close your <p>, <li>, <img>, or <... by thisislife2 on Tuesday January 13, 2026 @02:46AM (#46598291)
User input data is always to be treated as suspect when it reaches the server and needs to be scanned and sanitised (if necessary) before accepting it for processing. Markdown makes this a lot easier to do and this is why it became popular.