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

trailing

Table of contents

Description:

This key defines the trailing whitespace string for inline snippet content.

The value is a string that specifies whitespace tokens (typically spaces) inserted after inline snippet content.

Appears in:
└── Snippet Style
    └── inline
        └── trailing
Type:
string
Examples:

In this example, we have configured inline trailing whitespace to use a space.

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