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

raw

Table of contents

Description:

This key toggles whether the parser performs no parsing of the inner text.

Setting this key to true will perform no parsing of the inner text. This is a stricter version of allow_nested: false. Useful to improve the performance of the content parser, but can misbehave.

By default, this key is false (i.e., inner text is parsed).

Appears in:
└── Snippet
    └── params
        └── *
            └── Content Parser Configuration
                └── options
                    └── raw
Type:
boolean
Examples:
Copied to clipboard
parser: content
options:
  editor_key: highlighted_text
  raw: true
{
  "parser": "content",
  "options": {
    "editor_key": "highlighted_text",
    "raw": true
  }
}

Example usage:

Markdown
Copied to clipboard
## My blog post

<<highlight>>
  My highlighted <<highlight>>content!<</highlight>>   
<</highlight>>

Morbi leo risus, porta ac consectetur ac, vestibulum at eros.

With raw turned on, the content parser will perform no parsing on the text it is capturing. This means that the nested <<highlight>> will not be detected as a snippet and the first <</highlight>> tag found will end the content parser, giving you the parsed content My highlighted <<highlight>>content!.

Open in a new tab