Skip to content

Commit 9564dac

Browse files
committed
update docs
1 parent 6936859 commit 9564dac

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/en/guide/markdown.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,18 @@ Some content here.
932932
Some more content here.
933933
```
934934

935+
Here, `my-base-section` is the generated id of the heading element. In case it's not easily guessable, you can open the part file in your browser and click on the heading anchor (`#` symbol left to the heading when hovered) to see the id in the URL bar. Or use browser dev tools to inspect the element. Alternatively, you can also specify the id to part file like this:
936+
937+
```md
938+
## My Base Section {#custom-id}
939+
```
940+
941+
and include it like this:
942+
943+
```md
944+
<!--@include: ./parts/basics.md#custom-id-->
945+
```
946+
935947
## Math Equations
936948

937949
This is currently opt-in. To enable it, you need to install `markdown-it-mathjax3` and set `markdown.math` to `true` in your config file:

0 commit comments

Comments
 (0)