Skip to content

[feature request] Anchors in Doc header sections #93

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
zetashift opened this issue Mar 4, 2025 · 2 comments
Open

[feature request] Anchors in Doc header sections #93

zetashift opened this issue Mar 4, 2025 · 2 comments

Comments

@zetashift
Copy link

I don't know if this is something that's possible with the current Doc -> Html part, but the ability to have anchor links in headers in Doc would be nice QoL, because then you can link to certain sections in docs:

Image

@zetashift
Copy link
Author

I wonder if this could be done by adding an id to the transformation of section: https://github.com/unisonweb/ui-core/blob/main/src/Code/Definition/Doc.elm#L595

@hojberg
Copy link
Member

hojberg commented Mar 10, 2025

Getting and id on the headings would definitely be a start. There's a bit of a routing challenge with the Elm SPA, but should be doable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants