Blocks and other elements

Collapsible blocks

Basic collapsible block

Details.

Loads of details.

Collapsible block, defaulted to open

Details.

Loads of details.

Collapsible enclosure

Collapsible code block
Some code.

Collapsible results

Run this code.
Result
Voila!
Sidebar title

Sidebars are used to visually separate auxiliary bits of content that supplement the main text.

Horizontal rule

A line with three single quotation marks (i.e., ''') is a special macro that inserts a thematic break (aka horizontal rule):


Horizontal rules shouldn’t be required in the normal course of writing documentation. However, they are an optional tool available in AsciiDoc that can be used to visually separate content in a pinch.

Example block

Optional title

An example block is useful for visually delineating content that illustrates a concept or showing the result of an operation.

An example can contain any type of content and AsciiDoc syntax.

Here’s a sample AsciiDoc document:

= Title of Document
Doc Writer
:toc:

This guide provides...

The document header is useful, but not required.

Blockquote

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris eget leo nunc, nec tempus mi? Curabitur id nisl mi, ut vulputate urna. Quisque porta facilisis tortor, vitae bibendum velit fringilla vitae! Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris eget leo nunc, nec tempus mi? Curabitur id nisl mi, ut vulputate urna. Quisque porta facilisis tortor, vitae bibendum velit fringilla vitae!

— Famous Person. Cum dicat putant ne.
Cum dicat putant ne. Famous Person Website

Verse

The fog comes
on little cat feet.

Equations and formulas (STEM)

The AsciiDoc language supports embedding math-mode macros from LaTeX and/or AsciiMath notation as block or inline elements. These elements act as passthroughs to preserve the expressions as entered. The expressions are then passed on to the converter to be processed and rendered for display using a STEM provider (e.g., MathJax).

Although AsciiDoc supports STEM at the language level, the STEM provider must be configured in the output converter to render the expressions. See the discussion in Antora Issue #184 to learn more about the requirements for configuring STEM in Antora.

Inline stem macro

\$sqrt(4) = 2\$

Water (\$H_2O\$) is a critical component.

A matrix can be written as \$[[a,b],[c,d]]((n),(k))\$.

Block STEM content

\$sqrt(4) = 2\$

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com