Live data from Hacker News

I wish Asciidoc was more popular

pdx.su

31–40 of 124 posts

Re: I wish Asciidoc was more popular

#31
post #18

I really like asciidocs support for diagramming via the asciidoctor-diagram extension. It's supports lots of unique and useful diagramming formats, such as graphviz, ditaa, bytefield, etc.

Markdown does all of that via Mermaid etc. too. Treating the specified code block as a sort of extensible container.

Re: I wish Asciidoc was more popular

#32
post #29
post #21

Everything in that article is why I don't like asciidoc. I think a lot of documentation should be absolute dead simple - no macros and complex behavior. It should just work. Markdown is great for that.

Not having includes in markdown is a real bummer, though.

Documentation should have includes and transcludes (?) where you can include a part of a different document that stays in sync with the original doc.

Re: I wish Asciidoc was more popular

#33
post #24

Earlier quoted context omitted.

Not on my machine: # apt install asciidoc Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: asciidoc-base asciidoc-common docbook-xsl xsltproc Suggested packages: asciidoc-doc docbook-utils source-highlight dbtoepub docbook-xsl-doc-html | docbook-xsl-doc-pdf | docbook-xsl-doc-text | docbook-xsl-doc docbook-xsl-saxon fo…

You probably have X and Wayland installed (quite why those are required for asciidoc is a question I'll leave for others).

A lot of dependecies are pulled from the (recommended) asciidoc-dblatex package, which depends, indirectly, on x11 packages. Don't install the recommended packages (whose concept is anyway in conflict with keeping a system lean) and see what happens.

Re: I wish Asciidoc was more popular

#34
It's not accurate to say AsciiDoc only has a single implementation, there is the original AsciiDoc written in Python, and also there is AsciiDoctor written in Ruby. Unfortunately, AsciiDoctor is merely _mostly_ compatible and deliberately opted to not support some features. (And being Ruby, GitHub will use AsciiDoctor to render AsciiDoc files; whether you should conform your documents to this environment depends on what you're doing with them.)

AsciiDoc was written primarily as a way to write DocBook without having to use XML. AsciiDoctor has an alternative goal of writing HTML without having to use HTML. The subtle differences between these goals leads to a lot of "gotchas" if you try to serve both of them at the same time. At least if AsciiDoc is only a consumable in your build system and you deliver the compiled artifacts (be it HTML, PDF, man pages, etc), you can probably be fine enough knowing what your implementation does and does not do.

Re: I wish Asciidoc was more popular

#35
post #24

Earlier quoted context omitted.

You probably have X and Wayland installed (quite why those are required for asciidoc is a question I'll leave for others).

A lot of dependecies are pulled from the (recommended) asciidoc-dblatex package, which depends, indirectly, on x11 packages. Don't install the recommended packages (whose concept is anyway in conflict with keeping a system lean) and see what happens.

How to not install recommended packages? (there wasn't a choice, and anyway not installing recommended packages often implies - rightly or wrongly - security risks).

Re: I wish Asciidoc was more popular

#36
post #30
post #26

Earlier quoted context omitted.

Probably because asciidoc recommends asciidoc-dblatex (used for producing LaTeX via docbook). Try 'apt install asciidoc asciidoc-dblatex-' to install just asciidoc without pulling in the other package.

Thanks, hopefully this'll turn up on a google search for someone who just wants to turn simple text markup into a PDF ('apt' didn't offer the option of not installing asciidoc-dblatex).

I'll stick it in the article, in a closing notes section

Re: I wish Asciidoc was more popular

#37

Very briefly on admonitions: there is nothing stopping you from adding them to markdown yourself: You _really_ shouldn’t play with matches, Debbie. Later on in that document: warning { display: block; color: red; } Which is a very long winded way of saying that you can use markdown for authoring actual content, and then use good old HTML for styling whatever else you want to. Relying on asciidoc for styling elements…

> Which is a very long winded way of saying that you can use markdown for authoring actual content, and then use good old HTML for styling whatever else you want to. Why does Markdown bother to have * and ** markup? Why not just use " ", " ", " " or " "? 1. An admonition is no more "just styling" than is Markdown emphasis or strong markup, exclamation points at the end of a sentence or bullet lists (why not just use…

Because the majority of writing is text and lists. Admonitions don’t hit the sweet spot of requiring any extra-HTML markup. You can simply mark block level elements up with blocks.

You pretty much do this anyway in asciidoc, just with extra steps.

Re: I wish Asciidoc was more popular

#38
post #30
post #26

Earlier quoted context omitted.

Probably because asciidoc recommends asciidoc-dblatex (used for producing LaTeX via docbook). Try 'apt install asciidoc asciidoc-dblatex-' to install just asciidoc without pulling in the other package.

Thanks, hopefully this'll turn up on a google search for someone who just wants to turn simple text markup into a PDF ('apt' didn't offer the option of not installing asciidoc-dblatex).

            apt --no-install-recommends foobar
You can set some settings for apt-get in the config file so it doesn't pull the recommended packages as enforced dependencies.

Re: I wish Asciidoc was more popular

#39
AsciiDoc is great for writing, but don't try to auto-generate it; e.g. pandoc still can't correctly do so: https://github.com/jgm/pandoc/issues/2337

Note that Asciidoctor (the Ruby implementation) has a reasonable solution now, but it's not portable to Asciidoc (the original python implementation).

Re: I wish Asciidoc was more popular

#40
I love working with Asciidoc. For me, it's the right balance between Markdown and Latex. I like Org-mode quite a bit too, but Asciidoc, when paired with Antora for generating static sites and asciidoctor-pdf for generating PDF files, creates much better looking documentation than I've been able to achieve using Org-mode.
Post reply on HN