When comparing HyperText Markup Language (HTML) vs AsciiDoc, the Slant community recommends HyperText Markup Language (HTML) for most people. In the question“What are the best markup languages?” HyperText Markup Language (HTML) is ranked 3rd while AsciiDoc is ranked 4th. The most important reason people chose HyperText Markup Language (HTML) is:
Styling through CSS is declarative and powerful, but somewhat inadequate for print without expensive tools like Prince.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Styling via CSS
Styling through CSS is declarative and powerful, but somewhat inadequate for print without expensive tools like Prince.
Pro Natively understood by browsers
Natively understood by browsers, you can author and view HTML on virtually every computer without any additional software.
Pro Most universal and widely used markup language
Pro Simple
HTML is fairly simple for both humans and machines. It can be repetitive and burdensome to type, but less so than most other XML or SGML-derived formats.
Pro Simple interactivity through JavaScript
JavaScript code can be embedded directly into a HTML document.
Pro Standardized format
The formatting of Asciidoc is standardized so there is only one 'flavor' unlike in Markdown. The definitive user guide is here.
Pro Human-readable
Simple, easy-to-read style similar to Markdown. Designed to be easy for a human to enter with a simple text editor, and easy to read in its raw form.
Pro Technical Documentation
The DocBook format which Asciidoctor can convert to was originally developed with the creation of computer books in mind and thus has a rich array of formatting options which are powerful enough to manage the formatting of lengthy technical books.
Pro Supported by GitHub and GitLab
Both GitHub and GitLab support AsciiDoc syntax in repositories, wikis and Gists/Snippets (powered by the Asciidoctor Ruby gem).
Pro It's structured
Cleanly transforms to DocBook and HTML5.
Pro Supports semantic markup
Pro Native support for colored output
AsciiDoc has offered the ability to define both the color of any text output as well as its background, almost since its inception. It accepts several standard chromatic notations for them, too, including hexadecimal and decimal RGB values, decimal HSL and named CSS.
Pro Embedded metadata
The AsciiDoc standard defines a number of metadata values which can be defined inside a document primarily for contextual purposes that aren't rendered in its standard output such as author, date, license, document title and version, etc. These can be especially useful when searching through a large number of files/documents or documenting the evolution of one as part of a larger codebase.
Pro Shorter, more concise than Markdown
Pro Good tool support
There are plugins to support editing AsciiDoc for many editors/IDEs.
Cons
Con Verbose
Tags can hide actual content.
Con Not as popular/widely used as Markdown
The Asciidoc format is not as popular/widely used as Markdown. Notwithstanding the foregoing, Asciidoc is used for some of the following projects:
- O'Reilly and Maker Press
- NFJS, the magazine
- other examples
Con Limited output options
Asciidoctor can only convert directly to HTML or DocBook. However, you can always use another converter such as pandoc to convert from one of the output formats to another format.
Alternative Products
