Skip to content

Fix error when the url hash doesn't match an existing heading#394

Merged
tscanlin merged 1 commit into
tscanlin:masterfrom
ramrami:patch-1
Apr 26, 2026
Merged

Fix error when the url hash doesn't match an existing heading#394
tscanlin merged 1 commit into
tscanlin:masterfrom
ramrami:patch-1

Conversation

@ramrami

@ramrami ramrami commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

This fixes an Uncaught TypeError that happens when the URL has a hash that doesn't match a heading ID.
In my case, the hash is used by the CMS for other purposes.

@tscanlin

Copy link
Copy Markdown
Owner

Hey, thanks for the PR! I’m out of town currently but will make a release with this change once I’m back.

@tscanlin
tscanlin merged commit 0e4effd into tscanlin:master Apr 26, 2026
4 checks passed
@ramrami
ramrami deleted the patch-1 branch April 26, 2026 04:41
@tscanlin

tscanlin commented May 1, 2026

Copy link
Copy Markdown
Owner

This is published in tocbot@4.36.6. Thanks again!

@ramrami

ramrami commented May 14, 2026

Copy link
Copy Markdown
Contributor Author

Hi @tscanlin.
For some reason, the patch wasn't applied in the dist folder. Is this normal?

@tscanlin

Copy link
Copy Markdown
Owner

Hey, I think you are right. Let me check and put out a fix. Sorry about this!

@tscanlin

Copy link
Copy Markdown
Owner

This should be fixed in 4.36.8

@ramrami

ramrami commented May 15, 2026

Copy link
Copy Markdown
Contributor Author

Thank you very much

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.

2 participants