escape_md

Escape Markdown punctuation so text renders literally.

View Markdown

Syntax

{{ 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.