← Back to context

Comment by bazoom42

13 hours ago

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.

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.

  • 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.

Is it really that much easier to write `<br>` and know that it isn't a problem, than just write `<br />`?

  • 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.

    • 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…”.

      2 replies →

    • <script /> is invalid HTML, and <img></img> is also invalid HTML. There's no way to avoid knowing HTML syntax.

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.

  • I usually just write html tables, then convert to markdown via pandoc. It's a crazy world we live in.