mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
22 lines
430 B
Markdown
22 lines
430 B
Markdown
# File Include
|
|
|
|
Include content from other files.
|
|
|
|
## Syntax
|
|
|
|
```md
|
|
<!-- @include: filename -->
|
|
```
|
|
|
|
- **Lines**: `<!-- @include: filename{1-10} -->`
|
|
- **Region**: `<!-- @include: filename#region-name -->`
|
|
- In source file: `<!-- region region-name -->` ... `<!-- endregion region-name -->`
|
|
|
|
## Example
|
|
|
|
```md
|
|
<!-- @include: ./snippet.md -->
|
|
<!-- @include: ./snippet.md{1-5} -->
|
|
<!-- @include: ./snippet.md#snippet-name -->
|
|
```
|