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

escape_snippets_in_code_blocks

Table of contents

Description:

This key toggles whether CloudCannon will render snippets as plain text within code blocks when processing Markdown.

Setting this key to true will prevent snippets from being processed within code blocks, rendering them as plain text instead.

By default, this key is false (i.e., snippets within code blocks may be processed).

Appears in:
└── markdown
    └── options
        └── escape_snippets_in_code_blocks
Type:
boolean
Default value:
false
Examples:

In this example, we have configured Markdown to render snippets as plain text within code blocks.

Copied to clipboard
markdown:
  engine: commonmark
  options:
    escape_snippets_in_code_blocks: true
{
  "markdown": {
    "engine": "commonmark",
    "options": {
      "escape_snippets_in_code_blocks": true
    }
  }
}
Open in a new tab