import{B as e,P as t,_ as n,f as r,g as i,h as a,l as o}from"./runtime-core.esm-bundler-CZvn3YaB.js";import{t as s}from"./plugin-vue_export-helper-CxTVcLa7.js";var c=JSON.parse(`{"path":"/en/config/plugins/markdown-include/","title":"Markdown Include | Config","lang":"en-US","frontmatter":{"title":"Markdown Include","createTime":"2025/10/09 12:01:58","permalink":"/en/config/plugins/markdown-include/","description":"Overview Import content from other markdown files within Markdown files. Related plugin: @vuepress/plugin-markdown-include Configuration The theme enables markdownInclude by def...","head":[["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"Markdown Include\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2025-10-09T07:46:05.000Z\\",\\"author\\":[]}"],["meta",{"property":"og:url","content":"https://theme-plume.vuejs.press/en/config/plugins/markdown-include/"}],["meta",{"property":"og:site_name","content":"Plume Theme"}],["meta",{"property":"og:title","content":"Markdown Include"}],["meta",{"property":"og:description","content":"Overview Import content from other markdown files within Markdown files. Related plugin: @vuepress/plugin-markdown-include Configuration The theme enables markdownInclude by def..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"en-US"}],["meta",{"property":"og:locale:alternate","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2025-10-09T07:46:05.000Z"}],["meta",{"property":"article:modified_time","content":"2025-10-09T07:46:05.000Z"}],["link",{"rel":"alternate","hreflang":"zh-cn","href":"https://theme-plume.vuejs.press/config/plugins/markdown-include/"}]]},"readingTime":{"minutes":0.49,"words":148},"git":{"createdTime":1759995965000,"updatedTime":1759995965000,"contributors":[{"name":"pengzhanbo","username":"pengzhanbo","email":"volodymyr@foxmail.com","commits":1,"avatar":"https://avatars.githubusercontent.com/pengzhanbo?v=4","url":"https://github.com/pengzhanbo"}],"changelog":[{"hash":"385059f214cb07fc9a098859e889432fb81f998b","time":1759995965000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: update en docs (#708)"}]},"autoDesc":true,"filePathRelative":"en/config/plugins/markdown-include.md","headers":[],"bulletin":false}`),l={name:`markdown-include.md`},u={class:`code-block-title`,"data-title":`.vuepress/config.ts`},d={class:`code-block-title-bar`},f={class:`title`};function p(s,c,l,p,m,h){let g=e(`VPIcon`);return t(),r(`div`,null,[c[2]||=a(`
Import content from other markdown files within Markdown files.
Related plugin: @vuepress/plugin-markdown-include
The theme enables markdownInclude by default. You can further customize its behavior through configuration.
export default defineUserConfig({
theme: plumeTheme({
markdown: {
include: {
// ... options
}
},
// Can also be configured in \`plugins.markdownInclude\`, but not recommended
plugins: {
markdownInclude: {},
}
})
})(path: string, cwd: string | null) => string(path) => pathbooleanbooleantrue<!-- @include: xxx --> instead of @include: xxx for file inclusion.booleantruebooleantrue