78 字
1 分钟
Markdown 文件包含
Shirone 可以包含本地 Markdown 文件,或其中的安全片段。
export function greet(name: string) { return `你好,${name}`;}也支持包含完整文件或指定行范围:
<!-- @include: src/content/snippets/include-example.md{1-4} --><!-- @include: src/content/snippets/include-example.md{5-} --><!-- @include: src/content/snippets/include-example.md{-4} -->围栏代码块中的包含注释会保持为字面文本。
Markdown 文件包含
https://blog.codingshen.top/posts/markdown-includes/分享文章
生成精美分享图或复制链接,与更多人分享本文。
继续阅读
换条路线
从其他文章中稳定抽取
最后更新于 ,距今已过 65 天
部分内容可能已过时
评论