Feature Tour

Parsing Options

Parsing options control how Doxter turns source text into HTML. Set shared defaults in the plugin configuration, choose field-specific behaviour when creating a field, or pass options for one rendering call. A per-call option is useful when the same content appears in more than one context.

For example, a full article might need linkable headings, while a short preview should omit those anchors. The examples below disable heading anchors and shortcode parsing for the current rendering call.

Parsing Filter doxter

{% set options = {
    parseShortcodes: false,
    addHeaderAnchors: false
} %}

{{ '# Doxter Rules' | doxter(options) }}

doxterFieldHandle.html(options)

{% set options = {
    parseShortcodes: false,
    addHeaderAnchors: false
} %}

{{ entry.doxterFieldHandle.html(options) }}

Option Reference

OptionTypeDefaultDescription
codeBlockSnippetstring''See Fenced Code Blocks.
addHeaderAnchorsbooleantrueWhether to parse headers and add anchors for direct linking.
addHeaderAnchorsToarray[h1, h2, h3]Which headers to add anchors to if header parsing is enabled.
addTypographyStylesboolfalseWhether Typography Styles should be applied.
startingHeaderLevelstringh1Which tag should be use for the initial header.
parseReferenceTagsbooleantrueWhether Reference Tags should be parsed.
parseShortcodesbooleantrueWhether Doxter supported shortcodes should be parsed.