Include
Reuse content from other files.
Usage
Markdown
Specify the target Markdown file path in <include>
tag (relative to the Markdown file itself).
<include>./another.mdx</include>
This will display the content from target file (e.g. another.mdx
).
CodeBlock
For other types of files, it will become a codeblock:
<include>./script.ts</include>
<include lang="tsx" meta='title="lib.ts"'>
./script.ts
</include>
cwd
Resolve relative paths from cwd instead of Markdown file:
<include cwd lang="tsx" meta='title="lib.ts"'>
./script.ts
</include>
How is this guide?