bold

Wrap text in Markdown bold markers.

View Markdown

Syntax

{{ value | bold }}{{ value | bold:_ }}

Usage

  • The default marker is *. Pass _ to use the alternate underscore syntax. The marker is doubled around the value.
  • Leading and trailing whitespace stays outside inline markers.
  • For arrays and objects, including serialized collections from another filter, string values are formatted recursively while keys and non-string values are preserved.

Examples