hard_break
Turn single newlines into Markdown hard line breaks.
Syntax
1{{ 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.
Example
Open in Playground| Data | |
|---|---|
| Template | |
| Output | |