☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

parse_newline_character

Table of contents

Description:

This key toggles whether the parser treats \n as line breaks instead of literal characters.

Setting this key to true will treat \n as line breaks instead of literal characters. This is useful if you are editing your content in a multiline editing interface.

By default, this key is false (i.e., \n is treated as literal characters).

Appears in:
└── Snippet
    └── params
        └── *
            └── Content Parser Configuration
                └── options
                    └── parse_newline_character
Type:
boolean
Default value:
false
Examples:
Copied to clipboard
parser: content
options:
  parse_newline_character: true
{
  "parser": "content",
  "options": {
    "parse_newline_character": true
  }
}

Example usage:

Markdown
Copied to clipboard
## My blog post

<<highlight>> Line One\nLine Two <</highlight>> 

This content will be displayed on two lines when opened in an editing interface, instead of showing the literal \n characters.

Open in a new tab