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 (asciidoctor.org) http://asciidoctor.org (external link) 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.

Section B list
  • 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

  1. Step 1

  2. Step 2

  3. Step 3

  4. level 1

    1. level 2

      1. level 3

        1. level 4

          1. level 5

  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

  1. What is Asciidoctor?

    An implementation of the AsciiDoc processor in Ruby.

  2. What is the answer to the Ultimate Question?

    42

  3. Operating Systems

    Linux
    1. Fedora

      • Desktop

    2. Ubuntu

      • Desktop

      • Server

    BSD
    1. FreeBSD

    2. NetBSD

  4. Cloud Providers

    PaaS
    1. OpenShift

    2. CloudBees

    IaaS
    1. Amazon EC2

    2. Rackspace

Links

(asciidoctor.org) http://asciidoctor.org (external link) - automatic!

Inline anchors

Inline anchors make arbitrary content referenceable.

Inline anchors can be applied to a phrase like this one.

Use a cross reference to link to this location.

The xreflabel attribute will be used as link text in the cross-reference link.

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

Gemfile.lock
GEM
  remote: https://rubygems.org/
  specs:
    asciidoctor (0.1.4)

PLATFORMS
  ruby

DEPENDENCIES
  asciidoctor (~> 0.1.4)

Code block with title and syntax highlighting

app.rb
require 'sinatra'

get '/hi' do
  "Hello World!"
end

Code block with callouts

require 'sinatra' // (1)

get '/hi' do // (2)
  "Hello World!" // (3)
end
  1. Library import

  2. URL mapping

  3. HTTP response body

Sidebar

AsciiDoc history

AsciiDoc was first released in Nov 2002 by Stuart Rackham. It was designed from the start to be a shorthand syntax for producing professional documents like DocBook and LaTeX.

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.

Example 1. Sample document

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
  • one

  • two

  • three

Another paragraph.

Blockquote’s

Four score and seven years ago our fathers brought forth on this continent a new nation…​

— Abraham Lincoln
Address delivered at the dedication of the Cemetery at Gettysburg
A person who never made a mistake never tried anything new.
— Albert Einstein

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.

— Charles Lutwidge Dodgson
Mathematician and author, also known as (en.wikipedia.org) Lewis Carroll (external link)