hard_break

Turn single newlines into Markdown hard line breaks.

View Markdown

Syntax

{{ value | hard_break }}

Usage

  • Two trailing spaces are added before single newlines. Blank lines between paragraphs are preserved.
  • For arrays and objects, including serialized collections from another filter, string values are formatted recursively while keys and non-string values are preserved.