Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions doc/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@ attribute specifier that contains only a comment:
Foo bar {% This is a comment, spanning
multiple lines %} baz.

Note that inline comments cannot contain blank lines (since blank
lines act as paragraph separators). For multi-line comments that
may contain blank lines, use a [fenced comment block].

### Symbols

Surrounding a word with `:` signs creates a "symbol," which by
Expand Down Expand Up @@ -613,6 +617,37 @@ The contents of a div are interpreted as block-level content.
And here is another.
:::

### Fenced comment block

A fenced comment block begins with a line of three or more consecutive
percent signs (`%`), and ends with a line of consecutive percent signs
at least as long as the opening fence, or with the end of the document
or containing block.

The contents of a fenced comment block are ignored entirely; they do
not appear in the rendered output.

%%%
This is a comment block.
It can span multiple lines.
%%%

Unlike inline comments (`{% ... %}`), fenced comment blocks can contain
blank lines:
Comment thread
dereuromark marked this conversation as resolved.

%%%
First paragraph of comment.

Second paragraph of comment.
%%%

To include a run of three or more percent signs inside a comment,
use a longer opening fence:

%%%%
This %%% is not the end.
%%%%

### Pipe table

A pipe table consists of a sequence of *rows*. Each row starts and ends
Expand Down