-
Hi all, I’m authoring a notebook that I want to be readable and navigable both in JupyterLab and when rendered as a JupyterBook. In particular, I want to include internal links like:
This works fine in JupyterLab (where #References links to the ## References header), but it doesn’t work in JupyterBook, likely because of how anchors are handled. Is there a recommended way to define anchors or cross-references that are: I’ve seen Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
JupyterLab's MyST renderer uses the same tools that Jupyter Book 2 uses. Jupyter Book 1 uses the old Sphinx stack, whilst Jupyter Book 2 uses MyST-MD as the underlying engine. You should look to add explicit anchors to your headings, which will allow you to control the targets. For example:
|
Beta Was this translation helpful? Give feedback.
Could you clarify if you're using jupyterlab-myst, or or just JupyterLab?