Skip to content

Conversation

@Dubb3d4nny
Copy link

Description:
This PR introduces case-folding support in the Markdown parser to handle case-insensitive matching for headings, links, and anchors.
The update modifies markdown.js to ensure consistent anchor generation regardless of text casing, improving compatibility with various Markdown sources.

Testing:

  • Verified that headings with mixed case now produce the same anchor IDs.
  • Confirmed backward compatibility with existing Markdown behavior.

Added case-folding support to markdown-it-anchor and markdown-it-toc-and-anchor
to ensure consistent slug generation for headings and table of contents.
This improves link behavior in markdown documents with mixed case headings.
@Dubb3d4nny
Copy link
Author

Hi Dear maintainer,

I've implemented the requested Markdown anchor update — it now handles case-insensitive matching for consistent behavior.
Please review and merge at your earliest convenience, as this fix is time-sensitive.

Thanks for your quick attention!

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.

1 participant