Parsing Options#

Parsing option can be defined globally when defined in the plugin, per field, when the field is created or per call, when passed to a field method or the | doxter({}) filter.

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.

Previous ← Linkable Headers Next Filters →