Catalog / Asciidoctor Cheat Sheet
Asciidoctor Cheat Sheet
A quick reference guide to AsciiDoc syntax, covering fundamental elements for document creation and formatting with Asciidoctor.
Basic Syntax
Document Structure
= Document Title Document body starts here. |
= Article Title |
[preamble] |
Headings
= Level 1 Heading |
Each |
Paragraphs & Line Breaks
Paragraphs |
Separate paragraphs with a blank line. |
Line Breaks |
End a line with Example: |
Text Formatting
Basic Styles
Emphasis |
For italics or emphasis. |
Strong |
For bold or strong emphasis. |
|
For |
|
For |
Quotes & Citations
[quote, Attribution, Source] Block quote text here. |
[cite, id] |
Use |
Superscript and Subscript
Superscript |
Renders text as superscript. |
Subscript |
Renders text as subscript. |
Lists and Tables
Unordered Lists
|
Use |
Ordered Lists
. Item 1 |
Use |
Description Lists
Term:: Description of the term. |
Use |
Tables
[cols=“1,1,2”] |
Define columns with |
Links and Includes
Links
https://example.com link:https://example.com[Example] |
Use |
Images
image::image.png[alt text] image::images/diagram.png[Diagram, 300, 200] |
Use |
Includes
include::chapter1.adoc[] include::attributes.adoc[leveloffset=+1] |
Use |
Code Blocks
[source, ruby]puts “Hello, world!”[listing]This is a listing block. |
Use |