导入

可以使用import指令导入另一个文件的内容

导入文件

在markdown文件中导入另一个文件,需要以 "import-" 指令开头。import指令必须单独一行

$root为项目根目录,你也可以使用相对路径或者绝对路径的写法

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

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

编译结果

dist/build.md
# main content
main content

# hello content
hello content

最后更新于