Option
| Identifier | option |
| Allows Multiple | true |
Description
Section titled “Description”The option argument lets you add a single option. If you supply only one value (value), the value will be displayed in the input field and written to the front-matter.
If you supply two values (value, name), the value will be written to the front-matter and the name will be displayed in the input field.
Note that the plugin can not differentiate between two options with the same value, even if the name is different.
Some specific values are interpreted as types other than strings.
trueandfalseare interpreted as booleansnullis interpreted as a null value- numbers are interpreted as numbers
Values
Section titled “Values”The input field argument option accepts the following value configurations.
-
option(value: any)-
valueis the value and display name of the option
-
-
option(value: any, name: any)-
valueis the value of the option -
nameis the display name of the option
-
Allowed Input Fields
Section titled “Allowed Input Fields”
The input field argument option can be used on the following input fields.
selectmultiSelectsuggesterimageSuggesterinlineSelectlistSuggesterinlineListSuggesterimageListSuggester
Examples
Section titled “Examples”INPUT[select(option(banana), option(apple)):bind_target]INPUT[select( option(1, 1 Star), option(2, 2 Stars), option(3, 3 Stars), option(4, 4 Stars), option(5, 5 Stars)):bind_target]