escape_md
Escape Markdown punctuation so text renders literally.
Syntax
1{{ value | escape_md }}Usage
- Every ASCII punctuation character supported by Markdown backslash escapes is prefixed with a backslash.
- Existing backslashes are escaped so they remain visible.
- For arrays and objects, including serialized collections from another filter, string values are formatted recursively while keys and non-string values are preserved.
Example
Open in Playground| Data | |
|---|---|
| Template | |
| Output | |