Escapes

Sometimes you may want to write text which would normally trigger BML behavior without doing so. Escapes allow you to do this.

Backslashes

You can insert any of BML’s special characters literally by prefixing them with a backslash.

- curly braces \{(test)}
- square brackets \[[test]]
- a literal backslash \\
output:

Escape sequences

Backslashes can be used to insert some whitespace escape sequences, specifically \n for line breaks and \t for tabs.

first line\nsecond line

\tindented
output:

Lines ending with backslashes trigger special visual line break behavior.

Literal blocks

You can ask BML to skip over any region of text by enclosing it in double square brackets.

mode example {
    (see?) -> {(replaced)}
}
{use example}
[[{(this text), (is treated), (literally)}

modes skip literal blocks too: see?]]
output:

Post-processing steps like whitespace correction still run on literal blocks.