Try writing in AsciiDoc
This is a Hugo article written in AsciiDoc.
Markdown Syntax comparison table between AsciiDoc and
| Features | How to write Markdown | How to write AsciiDoc | Notes |
|---|---|---|---|
Heading |
|
|
AsciiDoc indicates hierarchy by the number of "= |
Paragraphs |
Separated by a blank line |
Separated by a blank line |
Common |
Emphasis (bold) |
|
|
More concise than Markdown |
italics |
|
|
Kanji fonts may not italicize |
Strikeout |
|
|
Write with attributes |
Bullet points (ul) |
|
|
Similar to Markdown |
Numbered lists (ol) |
|
|
Write with periods (automatic sequential numbering) |
Link |
|
HTML attributes, etc. can also be specified |
|
Image |
|
|
Size and position can be specified |
Quotations |
|
|
Can be decorated with block syntax |
Code (inline) |
|
|
Almost the same |
Code block |
```cpp |
[source,cpp] |
AsciiDoc specifies language attributes with tags |
Horizontal line |
--- または * |
'---' |
Almost the same |
Image with link |
[](URL) |
Combination is natural |
|
Annotation (FOOTNOTE) |
[^1] and at the end of the text [^1]: annotation content |
[1] |
AsciiDoc is easier |
Block quotations (multi-line) |
> Multiple lines |
[quote, Author, Source] |
Suitable for book style |
Table of Contents |
Generated by Hugo |
:toc: or toc::[] |
AsciiDoc can be completed in a single file |
Comment |
<!-- コメント -→ |
// Comment |
More concise than Markdown |
Attribute definitions (variables) |
None |
:name: Value → {name} |
AsciiDoc allows variable expansion |
Newline (explicit) |
At the end (two spaces) |
+(single line) |
AsciiDoc is clearer |
Example
-
Bullet points Emphasis ABCItalics
// Code block (Asciidoctor style)
#include <bits/stdc++.h>
int main(){ std::cout << "hello\n"; }
within a line: \(E = mc^2\)
