Kamis, 05 Desember 2024

AsciiDoctor Paragraph Quick Reference Sheet

Create a paragraph

Typing your first paragraph, and then insert an empty line, and then continue typing your content.

Notes

Hard line breaks are automatically retained in (without  change the option in preamble):
  • literal blocks/paragraphs
  • listing, source, and verse blocks.

Inline line break syntax

To preserve a line break in a paragraph, insert a space followed by a plus sign (+) at the end of the line.

Example 

Ruby is red. +
Java is beige +
Java is black.

Hardbreaks Option

To retain all of the line breaks in an entire paragraph, assign the hardbreaks option to the paragraph using an attribute list.

Example 

[%hardbreaks]
Ruby is red.
Java is beige.

hardbreaks-option attribute

To preserve line breaks in all paragraphs throughout your entire document, set the hardbreaks-option document attribute in the document header.

Example 

= Line Break Doc Title
:hardbreaks-option:

Bibliography

https://asciidoctor.org/
https://www.vogella.com/

linebreak, paragraph break, whitespace, word wrap, wrap text, AsciiDoc

Related Post

Tidak ada komentar:

Posting Komentar

Various Other Posts