This key defines the trailing whitespace string for block-level snippet content.
The value is a string that specifies whitespace tokens (typically newlines) inserted after block-level snippet content.
Appears in#
└── Snippet Style
└── block
└── trailingType#
string
Examples#
In this example, we have configured block trailing whitespace to use a newline.
Copied to clipboard
_snippets:
highlight:
snippet: <<highlight>> [[content]] <</highlight>>
params:
content:
parser: content
options:
style:
block:
trailing: \n{
"_snippets": {
"highlight": {
"snippet": "<<highlight>> [[content]] <</highlight>>",
"params": {
"content": {
"parser": "content",
"options": {
"style": {
"block": {
"trailing": "\\n"
}
}
}
}
}
}
}
}