Implementing table of content from scratch - Link to cell

I’m trying to implement table of content extension in Jupyterlab from scratch and have been trying to figure out how we can link certain text in the toc to one specific code/markdown cell in the notebook?

I’d like to click on the linked text and jump to the cell directly.

So far, I’ve been reading through core tokens available (Common Extension Points — JupyterLab 4.0.0a34 documentation) but not sure which one would we use for the purpose mentioned above.

Any help would be appreciated!

Reading the existing core one will likely be required anyway, so that other tools can plug in to the interface.

1 Like

Thanks! Reading the source code now.