- Description:
This key toggles whether nested snippets will be parsed and returned.
Setting this key to
truewill parse and return nested snippets.By default, this key is
false(i.e., nested snippets are not parsed and returned).- Appears in:
└── Snippet └── params └── * └── Content Parser Configuration └── options └── allow_nested- Type:
boolean- Examples:
- Copied to clipboard
parser: content options: editor_key: highlighted_text allow_nested: true{ "parser": "content", "options": { "editor_key": "highlighted_text", "allow_nested": true } } Example usage:
MarkdownCopied to clipboard## My blog post <<highlight>> My highlighted <<highlight>>content!<</highlight>> <</highlight>> Morbi leo risus, porta ac consectetur ac, vestibulum at eros.With
allow_nestedturned on, the content parser will detect and parse the nested<<highlight>>tags as another snippet, rather than plaintext.This doesn't have to be the same snippet, any configured snippet will be parsed inside the content parser.
If
allow_nestedis set to false, inner snippets will still be parsed, but will not be returned. This means that in the above example,My highlighted <<highlight>>content!<</highlight>>would be the raw text withallow_nested: false. If inner snippets were not parsed, the content parser would end parsing at the first<</highlight>>, giving you the text:My highlighted <<highlight>>content!. This is the behavior of therawoption.