50 words
1 minute
Markdown File Includes
Shirone can include a local Markdown file or a safe slice of one.
export function greet(name: string) { return `Hello, ${name}`;}The full file and line-range forms are also supported:
<!-- @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} -->Include comments inside fenced code remain literal.
Markdown File Includes
https://shirone.mysqil.com/posts/markdown-includes/Share Article
Generate a share poster or copy the link to share this article.
Continue reading
Take another route
A consistent pick from other articles
Last updated on , 4 days ago
Some content may be outdated