Live data from Hacker News

Why are we still using Markdown?

bgslabs.org

101–110 of 328 posts

Re: Why are we still using Markdown?

#101
You communicate on hacker news through plain text. You don't need to control the user don't, color, and what ads they see.

If what is to communicate, plain text is good enough. If you want to control how information is consumed, fuck of, die already.

Re: Why are we still using Markdown?

#102
post #91

Earlier quoted context omitted.

Worse is better doesn’t mean worst is best either.

Markdown is pretty far from the worst. It's decent and unobtrusive. Worst would be something like Troff or jira formatting. Midtier would be RST.

Ugh, troff. It's mind-boggling that the closest way to have an actual (hyper)link in a manpage is to use your pager's "search for text" function. No, "JuSt usE gNu iNfO it'S beTtER" is not an answer either.

Re: Why are we still using Markdown?

#105

I've written over a dozen books. Have used asciidoc, HTML, word, latex, and rst. Markdown is the least painful of all. It's not perfect but the others are worse. (My custom stack uses markdown (or Jupyter notebooks converted to markdown). Pandoc plus some custom filters creates typst (for PDF) or epub.)

I did a book in rst and liked that it had cool admonition, import, glossary, and index features that made it better than markdown for me. Still hate the heading conventions.

Re: Why are we still using Markdown?

#106
post #3

Because, like UNIX/Linux itself, worse is better: https://en.wikipedia.org/wiki/Worse_is_better - and perfect is the enemy of "good enough." We want to encourage people to produce written output with minimal friction. Barriers to writing--and especially barriers to producing documentation--should be minimized. Writing well is difficult enough! Markup is overhead. Complex markup is even more overhead. Markdown is the…

This is exactly why ReStructured Text is better/worse.

Re: Why are we still using Markdown?

#107
post #94

Earlier quoted context omitted.

"Better specified" doesn't mean better. A bunch of features doesn't mean better. Markdown is popular because it is simple. I have never had to teach anyone Markdown. They look at the file and immediately see what's going on and can copy the style. Occasionally someone may have to look up something like table syntax, but no one in my career or personal life has ever asked me to explain Markdown to them, which is rare…

Have you tried Asciidoc though? It is, IMHO, much clearer than markdown (YMMV, obviously), and exactly the same pros you gave of markdown can be said of Asciidoc. Bonus: It starts simple but can be used to do whole books if needed.

My experience is that Asciidoc very quickly gets into advanced syntax.

If you introduce something with advanced functionality onto a team, soon enough someone's going to use pieces that others don't fully understand later.

Now everyone touching the document has to understand includes and document metadata and whatever else someone added. Suddenly you have includes and cross-references and what used to be a document where you could read the raw non-rendered form linearly top to bottom is a confusing mess unless you render it. Markdown is almost always just as legible raw as rendered.

Re: Why are we still using Markdown?

#108
post #94

Earlier quoted context omitted.

"Better specified" doesn't mean better. A bunch of features doesn't mean better. Markdown is popular because it is simple. I have never had to teach anyone Markdown. They look at the file and immediately see what's going on and can copy the style. Occasionally someone may have to look up something like table syntax, but no one in my career or personal life has ever asked me to explain Markdown to them, which is rare…

Have you tried Asciidoc though? It is, IMHO, much clearer than markdown (YMMV, obviously), and exactly the same pros you gave of markdown can be said of Asciidoc. Bonus: It starts simple but can be used to do whole books if needed.

It's great apart from the nested list syntax. It's quite noisy. I'd prefer if it supported indentation.

Re: Why are we still using Markdown?

#109
post #72

Earlier quoted context omitted.

Not wrong, perhaps a little weird. HTML is a first class citizen in the commonmark (spec)[ https://spec.commonmark.org/0.31.2/#html-blocks ].

"Wrong" does not necessarily mean "against the standard". It means "against common usage and good team practice" in this context. It's "allowed" to use raw pointers, malloc, and any number of things in C++ code. In general, if you do any of them in a modern codebase you're doing it wrong.

Yes, it's obviously "against common usage" given HTML support exists specifically for less common features that Markdown does not support. Like tables, which are supported by some implementations but not all, and iirc not even all Markdown variants that support tables use the same syntax for them. The only way to be 100% sure is to use HTML. Of course you wouldn't do that if you just have the file on Github, but in general HTML is supported in Markdown for a reason.

Re: Why are we still using Markdown?

#110
I've thought about this a bit too, and instead of a straight escape hatch to html when any special formatting is necessary, it might make sense to bind css to particular elements like so:

##[color:red] Heading 2

or using code blocks with particular headers which render out as normal text with the styling applied, like this:

```styling: 'ruleset here...' Lorem Ipsum Dolor ```

this does require a lot of work to consider what might be ergonomic for a particular element (by element I mean ATX headings, blocks, etc.), though.

Post reply on HN