Some macros can be used in the markdown source to import files or variables.
Variables are defined in the book.json
file:
{
"variables": {
"myVariable": "Hello World"
}
}
Variables can be imported in all markdown files using {{ }}
.
For example to show the variable from the book.json (myVariable
):
# This is a test: {{ myVariable }}
In the same way, files can be imported:
# This is a test:
{{ ./file.md }}