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

parser

Table of contents

Description:

This key defines the parser type for content parser configurations.

The value must be content. This specifies that the parameter uses the content parser, which parses content between snippet boundaries.

Appears in:
└── Snippet
    └── params
        └── *
            └── Content Parser Configuration
                └── parser
Type:
"content" Required
Examples:

In this example, we have configured a content parser for a snippet parameter.

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