This key toggles whether the first line of the content needs to be indented when an indented_by value is set.
Setting this key to true will allow the first line of the content to not be indented, but subsequent lines must be indented.
By default, this key is false (i.e., all lines including the first must be indented).
Appears in
└── Snippet
└── params
└── *
└── Content Parser Configuration
└── options
└── allow_leadingType
boolean
Examples
Copied to clipboard
parser: content
options:
editor_key: highlighted_text
indented_by: ' '
allow_leading: true{
"parser": "content",
"options": {
"editor_key": "highlighted_text",
"indented_by": " ",
"allow_leading": true
}
}Example usage:
Markdown
Copied to clipboard
## My blog post
<<highlight>>
My highlighted content!
<</highlight>>
<<highlight>>Some initial content
More highlighted content!
<</highlight>>
Morbi leo risus, porta ac consectetur ac, vestibulum at eros.This will parse correctly as My highlighted content!
This will also parse correctly, as Some initial content\nMore highlighted content!,
despite the first line not being indented.