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

escape_indented_blocks

Table of contents

Description:

This key toggles whether CloudCannon will escape indented code blocks (4 spaces) when parsing content.

Setting this key to true will escape indented code blocks in the content, preventing them from being interpreted as code blocks.

By default, this key is false (i.e., indented code blocks are not escaped).

Appears in:
└── Snippet
    └── params
        └── *
            └── Content Parser Configuration
                └── options
                    └── escape_indented_blocks
Type:
boolean
Default value:
false
Examples:

In this example, we have configured content parser to escape indented code blocks.

Copied to clipboard
_snippets:
  highlight:
    snippet: <<highlight>> [[content]] <</highlight>>
    params:
      content:
        parser: content
        options:
          editor_key: highlighted_text
          escape_indented_blocks: true
{
  "_snippets": {
    "highlight": {
      "snippet": "<<highlight>> [[content]] <</highlight>>",
      "params": {
        "content": {
          "parser": "content",
          "options": {
            "editor_key": "highlighted_text",
            "escape_indented_blocks": true
          }
        }
      }
    }
  }
}
Open in a new tab