jemdoc-cvx – syntax reference

A systematic guide to the markup. Each section shows the syntax and its rendered effect. For a worked end-to-end example with rendered output and prose alongside the source, see the example page; for advanced constructs (image blocks, file includes, raw blocks), see extra syntax.

Inline formatting

Punctuation and special characters:

Equations:

URLs containing # must escape the # as \#.

Headings

Headings start a line with =. More = signs nest deeper:

Lists

Lists are introduced with - for bulleted, . for numbered, and : for definition lists. Indenting and doubling the marker creates nested lists:

- Bullet level one
    -- Bullet level two

. Number level one
    .. Number level two
    .. Number level two (again)

: {jemdoc} light markup
: {asciidoc} a great alternative, but more complicated

renders as

  • Bullet level one

    • Bullet level two

  1. Number level one

    1. Number level two

    2. Number level two (again)

jemdoc

light markup

asciidoc

a great alternative, but more complicated

Code and info blocks

Blocks are fenced with three tildes (~  ). The first {title} is an optional title shown above the block; the second {lang} is an optional syntax-highlighter hint (python, c, sh, matlab, ruby, cpp, jemdoc, commented, …).

Code block syntax
~~~
{Optionally empty title}{Optionally empty highlight mode}
Code block with monospaced text.
~~~

If you omit the second pair of braces in the first line of the block (or omit the whole first line altogether), you get an information block instead:

Information block

Inside an information block, all the usual jemdoc inline syntax still works.

Inline html escaping

Preventing matches

To stop jemdoc from interpreting markup characters, prefix them with a backslash:

This page covers the common cases; for image blocks, file includes, and other less-frequently-used constructs, see extra syntax.