Asciidoc Test

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula.

Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In vestibulum tincidunt congue. Nulla sit amet dui odio. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere.

Heading 2

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula.

Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In vestibulum tincidunt congue. Nulla sit amet dui odio. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere.

Heading 3

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula.

Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In vestibulum tincidunt congue. Nulla sit amet dui odio. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere.

Heading 4

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula.

Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In vestibulum tincidunt congue. Nulla sit amet dui odio. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere.

Heading 2

Heading 3

Heading 4

Stacked section headings.

Lists

A simple bulletted list:

  • One

  • Two

  • Three

A simple numbered list:

  1. One

  2. Two

  3. Three

A numbered list with a bulletted sublist:

  1. Protons

    • Option a

    • Option b

  2. Electrons

  3. Neutrons

A simple list with a title:

The numbers one to three
  • One

  • Two

  • Three

Nested list:

  • One

    • Two

      • Three

    • Four

  • Five

Lists with block content:

  • From the root directory of your deployment framework, run the command below:

    ./dfw deploy
  • Next instruction

  • Another instruction

    • Another instruction

      ./dfw deploy

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus.

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus.

Lists with paragraphs:

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex.

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex.

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex.

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex.

    • Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex.

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex.

    • Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex.

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex.

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex.

Labelled Lists

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula

A definition list
CPU

The brain of the computer. Hard drive::Permanent storage for operating system and/or user files.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex.

RAM

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex.

Keyboard

Used to enter text or control items on the screen.

Mouse

Used to point to and select items on your computer screen.

Monitor

Displays information in visual form using text and graphics.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula

A horizontal definition list (web only - not supported by DocBook)
CPU

The brain of the computer.

Hard drive

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex.

RAM

Temporarily stores information the CPU uses during operation.

Admonitions

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula

This is a TIP. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam venenatis ante eu mauris lacinia volutpat. Ut consectetur at arcu eget rhoncus. Quisque faucibus scelerisque lobortis. Aenean convallis egestas lobortis. Etiam at purus mauris. Curabitur eget lorem in arcu iaculis interdum sit amet vitae velit.
This is a NOTE. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam venenatis ante eu mauris lacinia volutpat. Ut consectetur at arcu eget rhoncus. Quisque faucibus scelerisque lobortis. Aenean convallis egestas lobortis. Etiam at purus mauris. Curabitur eget lorem in arcu iaculis interdum sit amet vitae velit.
This is an IMPORTANT. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam venenatis ante eu mauris lacinia volutpat. Ut consectetur at arcu eget rhoncus. Quisque faucibus scelerisque lobortis. Aenean convallis egestas lobortis. Etiam at purus mauris. Curabitur eget lorem in arcu iaculis interdum sit amet vitae velit.
This is a CAUTION. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam venenatis ante eu mauris lacinia volutpat. Ut consectetur at arcu eget rhoncus. Quisque faucibus scelerisque lobortis. Aenean convallis egestas lobortis. Etiam at purus mauris. Curabitur eget lorem in arcu iaculis interdum sit amet vitae velit.
This is a WARNING. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam venenatis ante eu mauris lacinia volutpat. Ut consectetur at arcu eget rhoncus. Quisque faucibus scelerisque lobortis. Aenean convallis egestas lobortis. Etiam at purus mauris. Curabitur eget lorem in arcu iaculis interdum sit amet vitae velit.

Text formatting

Bold phrase & characters

Italic phrase & characters

Bold italic phrase & characters

Italic bold (requires unconstrained quotes)

Monospace phrase & characters

Monospace bold phrase & characters

Monospace italic phrase & characters

Monospace bold italic phrase & characters

Line throughhave an italic-bold phrase *dfdf*

Highlight

underline

Replacements

© ® ™ — …​ → ⇒ ← ⇐ Sam’s

Footnotes

Lorem ipsum dolor sit amet, consectetur adipiscing elit.[1]

Lorem ipsum dolor sit amet, consectetur adipiscing elit.[2]

Images

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula

Caplin logo
Image block (title is rendered below the image)

Lorem ipsum dolor Caplin logo sit amet, consectetur adipiscing elit. Caplin logo Maecenas consequat tristique finibus. Caplin logo Sed arcu risus, euismod ac urna nec, Caplin logo aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula

Blocks

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula

Source code block (----)
var a = 10;

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula

Source code block with highlighting and callouts
require 'asciidoctor' (1)

puts Asciidoctor.convert_file 'mysample.adoc', to_file: false (2)

# Test callouts into double digits
         (3) (4) (5) (6) (7) (8) (9) (10) (11) (12)
1 Imports the library
2 Callout Two
3 Callout Three

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula

Example (====)

This is an example.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula

Literal block (…​.)
No *formatting* or <b>formatting</b> is applied.

But callouts work (1)
1 Callout one

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula

Open block (--)

An open block can be an anonymous container, or it can masquerade as any other block.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula

This is a 'raw' or 'passthrough' block. No formatting is applied at all. It's not even wrapped in a block.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula

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

Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure.

— Abraham Lincoln
Address delivered at the dedication of the Cemetery at Gettysburg

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula

When the President does it, that means that it’s not illegal.

— Richard M. Nixon

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula

I hold it that a little rebellion now and then is a good thing, and as necessary in the political world as storms in the physical.
— Thomas Jefferson
Papers of Thomas Jefferson: Volume 11

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula

Sidebar block

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula

Admonition block

This is an example of an admonition block.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex.

Tables

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat tristique finibus. Sed arcu risus, euismod ac urna nec, aliquet scelerisque ex. Morbi porttitor egestas justo, at tempor turpis vehicula

Standard table
Name of Column 1 Name of Column 2

Cell in column 1, row 1

Cell in column 2, row 1

Cell in column 1, row 2

Cell in column 2, row 2

Autowidth table (with 'spread' role)
Name of Column 1 Name of Column 2

Cell in column 1, row 1

Cell in column 2, row 1

Cell in column 1, row 2

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Autowidth table (without 'spread' role)
Name of Column 1 Name of Column 2

Cell in column 1, row 1

Cell in column 2, row 1

Cell in column 1, row 2

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Frame and grid options
Name of Column 1 Name of Column 2

Cell in column 1, row 1

Cell in column 2, row 1

Cell in column 1, row 2

Cell in column 2, row 2

Tables with complex content

One block in a cell
Test Result

Simple paragraph

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Paragraph (asciidoc)

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Lists

  • One

  • Two

Labelled list

One

definition

Two

definition

second paragraph

Code

var a = 1;
document.getElementById("demo").innerHTML = document.lastModified;

Admonition (asciidoc)

Do not feed the animals.

Nested table with caption

Table 1. Nested table caption
Heading Heading

One

Two

Nested table without caption

Heading Heading

One

Two

Three blocks in a cell
Test Result

Simple paragraph

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Paragraph (asciidoc)

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Lists

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

  • One

  • Two

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Multi-block lists

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit.

    Lorem ipsum dolor sit amet, consectetur adipiscing elit.

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit.

    Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Labelled list

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

One

definition

Two

definition

second paragraph

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Code

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

var a = 1

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Admonition (asciidoc)

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Do not feed the animals.

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Nested table with caption

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Table 2. Nested table caption
Heading Heading

One

Two

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Nested table without caption

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Heading Heading

One

Two

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Source code highlighting

Example code to help with styling syntax highlighting.

See CSS Syntax Highlight Test for more language examples.

JavaScript
var ServiceRegistry = require('caplin/core/ServiceRegistry');
var WatchlistServiceEvents = require('caplin/watchlist/WatchlistServiceEvents');

var watchlistService = ServiceRegistry.getService('caplin.watchlist.watchlist-service');

// Map of watchlists
var watchlists = {};

watchlistService.on(WatchlistServiceEvents.ADDED, function(watchlist) {
  watchlists['' + watchlist.getId()] = watchlist;
  alert('watchlist with following name has been added: ', watchlist.getName());
});

watchlistService.on(WatchlistServiceEvents.REMOVED, function(watchlist) {
	delete watchlists['' + watchlist.getId()];
	alert('watchlist with following name has been removed: ', watchlist.getName());
});

Equations and formulas

Both AsciiMath and LaTeX-math syntax are supported.

Equations are rendered in the browser using the MathJAX JavaScript library.

Example AsciiMath equation rendered as a block
\$sum_(i=1)^n i^3=((n(n+1))/2)^2\$
Example LaTeX math equation rendered as a block
\[\displaystyle\sum\limits_{i=0}^n i^3\]

The AsciiMath equation for the square root of 4, \$sqrt(4) = 2\$, rendered inline.

The LaTeX math equation for the square root of 4, \(\sqrt[]{4} = 2\), rendered inline.


See also:

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit.

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit.

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit.


1. Aliquam venenatis ante eu mauris lacinia volutpat
2. Aliquam venenatis ante eu mauris lacinia volutpat