mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-28 07:09:50 +00:00
* feat(include): support VS Code-style #region extraction for code files * chore: add changeset for include code region support * improve perf & fix bugs * Docs: introduce region support --------- Co-authored-by: Fuma Nama <[email protected]>
44 lines
569 B
Plaintext
44 lines
569 B
Plaintext
## Using JSX
|
|
|
|
Full:
|
|
|
|
> <include>./test.mdx</include>
|
|
|
|
First Heading:
|
|
|
|
> <include>./test.mdx#heading</include>
|
|
|
|
In JSX:
|
|
|
|
> <include>./test.mdx#section-in-jsx</include>
|
|
|
|
In Directive:
|
|
|
|
> <include>./test.mdx#section-in-directive</include>
|
|
|
|
## Using Directives
|
|
|
|
In Directive:
|
|
|
|
> :::include
|
|
> ./test.mdx#section-in-directive
|
|
> :::
|
|
|
|
Inline Directive:
|
|
|
|
> ::include[./test.mdx#section-in-directive]
|
|
|
|
## Code
|
|
|
|
> <include>./code.ts</include>
|
|
|
|
With Region:
|
|
|
|
> <include>./code.ts#a</include>
|
|
|
|
With Nested Region:
|
|
|
|
> <include>./code.ts#b</include>
|
|
|
|
> <include>./code.ts#c</include>
|