Markup languages

There are plenty of markup languages around, and sometimes it is tricky to pick one for a task at hand. I am going to put together a few observations here.

And since I'm interested in exporting documents into HTML, Atom feeds, and info files, those aspects will be mentioned explicitly. It is assumed that quality of export/conversion unintended in the design is rather low.

Languages

LaTeX

It is an advanced markup language, and it is nice in many aspects, so I will only list its drawbacks.

Cons:

Use cases: it is useful for complex documents, involving diagrams or mathematical formulæ, or for anything that could use templates, but could be excessive in other cases. "LaTeX is the de facto standard for the communication and publication of scientific documents."

SGML- and XML-based ones

XHTML can be nicely generated out of XML with XSLT (which is handy for templating), as well as atom feeds. Use of data models such as DITA and DocBook brings additional pros and cons, so they are summarized separately.

Pros:

Cons:

Data models (DITA, DocBook, perhaps others)

Pros:

Cons:

Org-mode

Pros:

Cons:

Use cases: all kinds of notes, static websites, probably basic info files.

Texinfo

Pros:

Cons:

Use cases: its primary purpose is to create technical manuals, and it seems to be good at that, so anything manual-alike is what it's good for.

CommonMark

A specified Markdown flavor.

Use cases: HTML export is its primary target.

reStructuredText and Sphinx

Probably I shouldn't mix those together, but that's what I'm doing.

Pros:

Cons:

Use cases: manuals, documentation, READMEs (quite comfortable to read as plain text).

Others

PostScript is a surprisingly readable and somewhat nice for a language that is usually used as a target to compile other languages (perhaps LaTeX most of the time) into.

Conclusion

As usual, it is about preferences, priorities, and tasks. It may be tempting to pick a single language for everything, but as with programming languages, there is no single tool ("golden hammer") that would be most suitable for all tasks.

See also

Wikipedia: Comparison of document markup languages, List of document markup languages.