Skip to content

✨ Links to headings in Table of Contents #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
PA055 opened this issue Nov 10, 2024 · 0 comments
Open

✨ Links to headings in Table of Contents #54

PA055 opened this issue Nov 10, 2024 · 0 comments
Labels
type:enhancement New feature or request

Comments

@PA055
Copy link
Contributor

PA055 commented Nov 10, 2024

Requested Feature

Use the #link feature of typst in the TOC so clicking an entry will bring you to the specified entry

  • automatically generate a reference for each entry that is documented so users can reference the entry in the notebook

Current Implementation

N/A

Motivation

This would make the notebook seem more professional and help with navigation as the notebooks get larger.

Possible Implementations and Alternatives

In each theme, create a reference which by default is the title with the spaces replaced by underscores, but can be changed by an argument (this would be in the create-entry function) and in the TOC component we wrap every item in a link.
I will create a PR if your interested in adding this

@PA055 PA055 added the type:enhancement New feature or request label Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant