AsciiDoc Markup Example
All AsciiDoc content types to verify theme styling
This is a paragraph under heading 1. It contains strong text, emphasized text, and inline code.
Heading 2
This is a paragraph under heading 2 with a link to example.com.
Heading 3
This is a paragraph under heading 3.
Heading 4
This is a paragraph under heading 4.
Heading 5
This is a paragraph under heading 5.
Heading 6
This is a paragraph under heading 6.
Blockquotes
This is a blockquote. It can span multiple lines.
It can even have multiple paragraphs.
Strong and Emphasis
This paragraph contains bold/strong text, italic/emphasized text, and bold and italic text.
Code
Inline Code
This paragraph contains inline code within regular text.
Code Blocks
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
function greet(name) {
return `Hello, ${name}!`;
}
console.log(greet("World"));
Code Blocks with Callouts
public class Example {
public static void main(String[] args) {
String message = "Hello"; (1)
System.out.println(message); (2)
}
}
| 1 | Initialize the message variable |
| 2 | Print the message to console |
server:
port: 8080 (1)
host: localhost (2)
database:
url: jdbc:postgresql://localhost:5432/mydb (3)
username: admin
| 1 | Configure server port |
| 2 | Set server host |
| 3 | Database connection URL |
Lists
Unordered Lists
-
First item
-
Second item
-
Third item
-
Nested item 1
-
Nested item 2
-
-
Fourth item
Ordered Lists
-
First step
-
Second step
-
Third step
-
Nested step 1
-
Nested step 2
-
-
Fourth step
Tables
| Header 1 | Header 2 | Header 3 |
|---|---|---|
Cell 1 |
Cell 2 |
Cell 3 |
Cell 4 |
Cell 5 |
Cell 6 |
Cell 7 |
Cell 8 |
Cell 9 |
Cell 10 |
Cell 11 |
Cell 12 |
Table with Alignment
| Left Aligned | Center Aligned | Right Aligned |
|---|---|---|
Left |
Center |
Right |
Left |
Center |
Right |
Horizontal Rule
Paragraphs
This is a standard paragraph with regular text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
This is another paragraph. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Links
Here is an inline link and here is a link with title.
Mixed Content
Here’s a paragraph with strong text, emphasized text, inline code, and a link all in one.
And here’s a blockquote that contains strong text, emphasized text, and
inline codeas well.
Complex List
-
First item with strong text
-
Second item with
inline code -
Third item with a link
-
Nested unordered item
-
Another nested item with emphasis
-
-
Fourth item
Code in Other Elements
Code in Headings: inline-code
This heading has inline code: variable = value
Code in Lists
-
Item with
inline code -
Item with code block:
def hello(): print("Hello")
Code in Blockquotes
This blockquote contains
inline codeand shows how code is styled within quotes.
AsciiDoc-Specific Elements
Admonition Blocks
| This is a note admonition. It provides additional information. |
| This is a tip admonition. It offers helpful advice. |
| This is an important admonition. Pay attention to this. |
| This is a warning admonition. Be careful about this. |
| This is a caution admonition. Proceed with care. |
Verse Block
This is a verse block. It preserves line breaks and formatting exactly as written.
Source
Example Block
This is an example block. It’s used to highlight examples or demonstrate concepts.
It can contain multiple paragraphs and other elements.
Sidebar Block
Definition Lists
- Term 1
-
Definition 1
- Term 2
-
Definition 2
- Term 3
-
Definition 3
With additional paragraph.
Checklist
-
Checked item
-
Another checked item
-
Unchecked item
-
Another unchecked item
Special List Styles
-
Circle item 1
-
Circle item 2
-
Square item 1
-
Square item 2
Code Listing with Language
fn main() {
println!("Hello, world!");
}
Complex Table
| Name | Description | Status |
|---|---|---|
Feature 1 |
This is a longer description of feature 1 |
✓ |
Feature 2 |
This is a longer description of feature 2 |
✓ |
Feature 3 |
This is a longer description of feature 3 |
Pending |