In my jupyter-book, I want to reference a section header in the same document using the syntax below:
I want to refer to [section](intro.md#how-to-learn-python]
where intro.md
is your current markdown file, and how-to-learn-python
is a section inside this document.
I read that MyST-Parser has Auto-generated header anchors which allow me to do so using the above method. But after I placed my configuration into _config.yml
:
parse:
myst_heading_anchors: 3
It still did not work. Currently, the jupyter-book tutorial requires me to create a tag manually for each section header, which consumes a lot of time.
Other references: