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_blocksType
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
}
}
}
}
}
}