Zettelmarkup: Verse Blocks

00001007030700 · Info · (manual) · #manual #zettelmarkup #zettelstore

Sometimes, you want to enter text with significant space characters at the beginning of each line and with significant line endings. Poetry is one typical example. Of course, you could help yourself with hard space characters and hard line breaks, by entering a backslash character before a space character and at the end of each line. Using a verse block might be easier.

This kind of line-range block begins with at least three quotation mark characters (“"”, U+0022) at the first position of a line. You can add some attributes on the beginning line of a verse block, following the initiating characters. The verse block does not support the default attribute, nor the generic attribute. Attributes are interpreted on HTML rendering. Any other character in this line will be ignored.

Text following the beginning line will be interpreted, until a line begins with at least the same number of the same characters given at the beginning line. This allows to enter a verse block within a verse block. At the ending line, you can enter some inline elements after the quotation mark characters. These will interpreted as some attribution text.

For example:

""""
A verse block with
 an
  embedded
   verse block
"""{style=color:green}
Embedded
  verse
block
""" Embedded Author
"""" Verse Author

will be rendered as:

A verse block with
 an
  embedded
   verse block

Embedded
  verse
block

Embedded Author
Verse Author