Live data from Hacker News

Markdown's Big Brother: Say Hello to AsciiDoc

git-tower.com

21–30 of 65 posts

Re: Markdown's Big Brother: Say Hello to AsciiDoc

#21
> If you’ve been relying on Markdown and occasionally fighting its quirks, AsciiDoc might be the structured, fully-featured alternative you didn’t know you needed.

No, I'm afraid it's the format I know I don't need. At least not for the kind of things I usually use markdown for.

Readme files, technical documentation, moderately complex websites with templating and rendering engines - markdown works just fine. Sometimes with a custom `|||warning\n...\n|||\n` thrown in to render something in a box with a red border.

I get that there's a market in the space occupied by TeX, Typst (underrated IMHO), and possibly MS Word or Quark Express (for non-techies). Libreoffice is great in theory but, again IMHO, "eh" in practice. That market is generating book-length documents with all the cross-references and other features that needs.

That said, Robert Nystrom of "Crafting Interpreters" managed this just fine with markdown and a few custom scripts: https://journal.stuffwithstuff.com/2020/04/05/crafting-craft... , https://github.com/munificent/craftinginterpreters/tree/mast... . This is how those famous 10x writers/programmers work, I guess.

Asciidoc is Markdown's big brother? I'll carry on playing with the little brother, thank you very much.

Also the whole page is an ad for their own editor tool. $9.99 per month so you don't need to use your own editor and unintuitive tools like (gasp!) the terminal.

Re: Markdown's Big Brother: Say Hello to AsciiDoc

#22

We’ve used AsciiDoc for some of our documentation and for generating slide decks. It is obviously a nice system but over time our frustration with it grew. Every other piece of software we have uses Markdown: GitHub, work chat, chats of open source projects we work with, things like StackOverflow, HackMD, personal note taking apps, the list goes on and on. Every new person joining our team had to adjust to AsciiDoc j…

> over time our frustration with it grew. Every other piece of software we have uses Markdown

Doesn’t seem fair to call that a frustration with AsciiDoc. The frustration is around it, caused by everything else.

> GitHub

Supports and renders AsciiDoc for documentation. But granted, preference is given to markdown in things like comments.

Re: Markdown's Big Brother: Say Hello to AsciiDoc

#23
post #8

Earlier quoted context omitted.

What exactly is your comment about? Have you heard about asciidoc before?

AsciiDoc is even older than Markdown.

As is org-mode. I think Markdown is one of those VHS vs Betamax kind of situations where it was just lucky to get the traction that its competitors didn't.

Re: Markdown's Big Brother: Say Hello to AsciiDoc

#25

Other than inertia, what is keeping AsciiDoc from overtaking Markdown? Personally I like the ubiquity and simplicity of Markdown, but I can also see the benefits of the features AsciiDoc has to offer.

> Other than inertia

Why does there need to be something else? That’s a powerful reason.

Markdown is subpar and has an awful steward—as evidenced by all the different “flavours” and degrees of support in existence—but we somehow made it work in a jumble of hacks and that’s what we have now. It’s crummy but gets the job done.

Even if AsciiDoc is technically superior, which it probably is, is it superior enough to justify the big players implementing and pushing for in more in places regular users have access too?

Re: Markdown's Big Brother: Say Hello to AsciiDoc

#26
post #5

Any Markdown implementation which allows for custom directives and is CommonMark-compliant is good enough for me. MyST, for example, lets you do :::{makeup-highlight} :lang: elixir defmodule A do def b, do: :ok end ::: :::{pygments-highlight} :lang: python class B: pass ::: Since MyST has intermediaries that just give you an AST, you have a lot more extensibility using directives and roles to do special things (inclu…

AsciiDoctor also has an AST intermediary which can be used by plugins/extensions.

Re: Markdown's Big Brother: Say Hello to AsciiDoc

#27
The problem with asciidoc is that it doesn't support nesting. Markdown allows you to nest constructs as much as you want using syntax that are easy to use for both humans and documentation-generating applications.

The asciidoc developers don't seem to consider this an important issue: https://github.com/asciidoctor/asciidoctor/issues/1121

While asciidoc has some nice constructs, this made it a no go the last time I was looking for a documentation language.

Re: Markdown's Big Brother: Say Hello to AsciiDoc

#29
Once I felt that Markdown wasn't enough for documentation and Asciidoc seemed to be a good alternative.

I tried to rewrite it to AsciiDoc, but there was some unexpected ugly ess. Iirc e.g. lists. It bothered me so much, I switched back to markdown.

Today I reach for Typst when I need more than Markdown. Biggest caviar there is that html export is still wip.

Re: Markdown's Big Brother: Say Hello to AsciiDoc

#30

Unfortunate naming. When most devs think of "ascii" they think "oh that character encoding you shouldn't use anymore"

On a side note, it's still part of almost all character encodings, since it only occupies half of an octet. Obviously for many languages and special chars we need another "half".
Post reply on HN