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

escape_fenced_blocks

Table of contents

Description:

This key toggles whether CloudCannon will escape fenced code blocks (triple backticks) when parsing content.

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

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

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

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

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