Import

You can use the "import" command to import the content of another file.

import file

To import another file in the markdown file, it needs to start with the "import-" directive. The import directive must be on a separate line.

$root is the root directory of the project, and you can also use relative or absolute path notation.

main.md
# <!--{v-name}--> content
<!--{v-name}--> content

<!--{import-$root/hello}-->

compiler results

dist/build.md
# main content
main content

# hello content
hello content

Last updated