Skip to content

Escape Characters ​

Put a backslash (\) before a markup character to display that character as text.

Basic Escaping ​

Use backslash to display special characters literally:

sevenmark
Escaped characters: \{ \} \[ \] \* \_ \~ \^ \, \\

Common Escape Sequences ​

Markup Characters ​

sevenmark
\*Not italic\*
\**Not bold\**
\__Not underlined\__
\~~Not strikethrough\~~
\^^Not superscript\^^
\,,Not subscript\,,

Braces and Brackets ​

sevenmark
\{Not a brace element\}
\{\{\{Not a brace block\}\}\}
\[Not a bracket element\]
\[\[Not media\]\]

Backslash Itself ​

To display a literal backslash, escape it with another backslash:

sevenmark
This is a backslash: \\
This is a Windows path: C:\\Users\\Name\\Documents

Escaping in Different Contexts ​

In Text ​

sevenmark
Regular text with \*escaped asterisks\* and \\backslashes.

In Parameters ​

sevenmark
{{{ #style="content: '\*'; color: red" Parameter with escaped content }}}

In Code Blocks ​

Fenced code bodies are raw text. Formatting markers do not need backslash escapes there:

sevenmark
```
function example() {
    // These don't need escaping: * _ ~ ^ ,
    return "Special chars: {} [] *";
}
```

In Lists and Tables ​

sevenmark
{{{#list #type="numeric"
[[Item with \*escaped\* characters]]
[[Another item with \[\[brackets\]\]]]
}}}

{{{#table
[[[[Column 1]] [[Column \*2\*]]]]
[[[[Row with \{\{\{braces\}\}\}]] [[Normal cell]]]]
}}}

When Escaping is NOT Needed ​

Inside Literal Blocks ​

Formatting markers remain text. Literal blocks still process backslash escapes and balanced delimiters. See literal blocks.

sevenmark
{{{
This content is literal: **bold** *italic* [[media]]
}}}

Inside Comments ​

sevenmark
/* Comments can contain markup as text:
   **bold** *italic* {{{#list}}} [[links]]
*/

Escape Sequences Reference ​

Escaped sourceDisplayed characterDescription
\**Asterisk (prevents bold/italic)
\__Underscore (prevents underline)
\~~Tilde (prevents strikethrough)
\^^Caret (prevents superscript)
\,,Comma (prevents subscript)
\{{Left brace
\}}Right brace
\[[Left bracket
\]]Right bracket
\\\Backslash itself