Tags:
Preamble paragraph.
Note
|
This is test, only a test. |
Testing attributes — Name attributeName value attribute Value From metaData LiNe
layout - default.html.ejs
title - {title}
note - Cobbled together from See http://asciidoctor.org documentation
idprefix - id_
another - attribute values
theTeaser -
This is a paragraph in a long attribute.
This is another paragraph in a long attribute.
app-name MyApp©
Section A
Section A paragraph.
Section A Subsection
Section A subsection paragraph.
Section B
Section B paragraph.
-
Item 1
-
Item 2
-
Item 3
A normal paragraph.
A paragraph offset by at least one space becomes a literal paragraph. All lines in a literal paragraph must be adjacent.
A literal paragraph is displayed as preformatted text. The text is shown in a fixed-width font. Spaces and newlines, like the ones in this sentence, are preserved.
Another normal paragraph.
Note
|
An admonition paragraph draws the reader’s attention to auxiliary information. Its purpose is determined by the label at the beginning of the paragraph. |
Here are the other built-in admonition types:
Tip
|
Pro tip… |
Important
|
Don’t forget… |
Warning
|
Watch out for… |
Caution
|
Ensure that… |
This text will be styled as a lead paragraph (i.e., larger font).
bold phrase & characters
italic phrase & characters
bold italic phrase & characters
monospace phrase
& ``char``acter``s``
*monospace bold phrase*
& ``char``acter``s``
_monospace italic phrase_
& ``char``acter``s``
*_monospace bold italic phrase_*
&
``char``acter``s``
Werewolves are allergic to cassia cinnamon.
Did the werewolves read the small print?
Where did all the cores run off to?
We need ten make that twenty VMs.
Once upon an infinite loop.
superscript phrase
subscript phrase
"double curved quotes
"
Olaf’s desk was a mess.
Unordered lists
-
Edgar Allen Poe
-
Sheri S. Tepper
-
Bill Bryson
-
Edgar Allen Poe
-
Sheri S. Tepper
-
Bill Bryson
-
Ordered lists
-
Step 1
-
Step 2
-
Step 3
-
level 1
-
level 2
-
level 3
-
level 4
-
level 5
-
-
-
-
-
level 1
Checklist
-
✓ checked
-
✓ also checked
-
❏ not checked
-
normal list item
Definitions
- first term
-
definition of first term
- second term
-
definition of second term
- first term
-
definition of first term
- section term
-
definition of second term
-
What is Asciidoctor?
An implementation of the AsciiDoc processor in Ruby.
-
What is the answer to the Ultimate Question?
42
-
Operating Systems
- Linux
-
-
Fedora
-
Desktop
-
-
Ubuntu
-
Desktop
-
Server
-
-
- BSD
-
-
FreeBSD
-
NetBSD
-
-
Cloud Providers
- PaaS
-
-
OpenShift
-
CloudBees
-
- IaaS
-
-
Amazon EC2
-
Rackspace
-
Links
http://asciidoctor.org - automatic!
Inline anchors
Inline anchors can be applied to a phrase like this one.
Source code
Reference code like types
or methods
inline.
error: The requested operation returned error: 1954 Forbidden search for defensive operations manual absolutely fatal: operation initiation lost in the dodecahedron of doom would you like to die again? y/n
Listing block with title, no syntax highlighting
GEM remote: https://rubygems.org/ specs: asciidoctor (0.1.4) PLATFORMS ruby DEPENDENCIES asciidoctor (~> 0.1.4)
Code block with title and syntax highlighting
require 'sinatra'
get '/hi' do
"Hello World!"
end
Code block with callouts
require 'sinatra' // (1)
get '/hi' do // (2)
"Hello World!" // (3)
end
-
Library import
-
URL mapping
-
HTTP response body
Sidebar
Sections with titles. Any block can have a title, positioned above the block. A block title is a line of text that starts with a dot. The dot cannot be followed by a space.
Here’s a sample AsciiDoc document:
= Title of Document Doc Writer :toc: This guide provides...
The document header is useful, but not required.
Note
|
An admonition block may contain complex content. A list
Another paragraph. |
Blockquote’s
Four score and seven years ago our fathers brought forth on this continent a new nation…
Address delivered at the dedication of the Cemetery at Gettysburg
A person who never made a mistake never tried anything new.
A person who never made a mistake never tried anything new.
If you don’t know where you are going, any road will get you there.
Mathematician and author, also known as Lewis Carroll