fix: Add additional characters to be removed#52
Merged
kevin-david merged 3 commits intothlorenz:masterfrom Dec 19, 2025
Merged
Conversation
48c0c11 to
b1acb03
Compare
b1acb03 to
9f567fd
Compare
Contributor
Author
|
@AndrewSouthpaw / @thlorenz i have attempted to work through doctoc issues and this would help close a number of them see thlorenz/doctoc#300 |
Contributor
Author
|
Maybe @adrianmcli or @kevin-david would be able to take a quick look at this PR? |
Collaborator
|
Thanks @kevin-david for the review! I'm on vacation for a couple weeks and won't be able to respond to messages for a bit. |
AndrewSouthpaw
pushed a commit
to thlorenz/doctoc
that referenced
this pull request
Feb 10, 2026
This ensures that special characters are being correctly handled and producing the expected results. The examples from the below issues have been added to a markdown file and a test added to compared it to the link generated by the github website. Closes: #79 Closes: #92 Closes: #96 Closes: #97 Closes: #122 Closes: #138 Closes: #165 Closes: #172 Closes: #175 Closes: #182 Closes: #193 Closes: #223 Closes: #242 Closes: #260 Blocked by: thlorenz/anchor-markdown-header#52 & thlorenz/anchor-markdown-header#53 Note the update for above also Closes: #167
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #51
Is blocking: thlorenz/doctoc#300
Remove both % & \ from id's as required by github/ Also most latin-1 supplement characters are removed.