Variable

You can use the "v" command to use variables.

define variables

Define variables in the JSON file

main.json
{
    "variable1": "hello",
    "variable2": "world"
}

use variables

To use variables in a markdown file, it is necessary to start with the "v -" directive

main.md
# variable
<!--{v-variable1}--> : <!--{v-variable2}-->

compiler results

dist/build.md
# variable
hello : world

Last updated