Skip to content

feat(router): move anchor creation to seperate function#3092

Merged
Gerrit0 merged 3 commits into
TypeStrong:masterfrom
avivkeller:avivkeller/feat/build-anchors
Apr 12, 2026
Merged

feat(router): move anchor creation to seperate function#3092
Gerrit0 merged 3 commits into
TypeStrong:masterfrom
avivkeller:avivkeller/feat/build-anchors

Conversation

@avivkeller
Copy link
Copy Markdown
Contributor

It would be really nice if custom themes and projects could define their own anchor generation without needing to rewrite the entire buildAnchors function. So, this PR moves the anchor creation to a new createAnchor(target, pageTarget) helper, which can be overridden independently of buildAnchors.

Copilot AI review requested due to automatic review settings April 6, 2026 14:32

This comment was marked as spam.

@Gerrit0 Gerrit0 merged commit a108643 into TypeStrong:master Apr 12, 2026
8 checks passed
@Gerrit0
Copy link
Copy Markdown
Collaborator

Gerrit0 commented Apr 12, 2026

Thanks!

@Gerrit0 Gerrit0 added this to the 0.28.19 milestone Apr 12, 2026
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

Successfully merging this pull request may close these issues.

3 participants