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


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 \\

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


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?]]

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