mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 05:44:50 +00:00
[PR #911] [MERGED] feat(link-helper): improve ASCII normalization handling #1302
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/xoofx/markdig/pull/911
Author: @mos379
Created: 10/29/2025
Status: ✅ Merged
Merged: 11/10/2025
Merged by: @xoofx
Base:
master← Head:Linkhelper📝 Commits (3)
0194e40feat(link-helper): improve ASCII normalization handlingeb4e5b1Add tests for Scandinavian and German character normalization2711dd2test(link-helper): update ASCII transliteration tests📊 Changes
2 files changed (+158 additions, -15 deletions)
View changed files
📝
src/Markdig.Tests/TestLinkHelper.cs(+77 -8)📝
src/Markdig/Helpers/LinkHelper.cs(+81 -7)📄 Description
feat(link-helper): improve ASCII normalization handling
Enhanced the
Urilizemethod to better handle ASCII normalization and special characters. Added support for decomposing characters whenallowOnlyAsciiis true and skipping diacritical marks. Introduced handling for special German, Scandinavian, and Icelandic characters via new helper methods:IsSpecialScandinavianOrGermanCharandNormalizeScandinavianOrGermanChar.Reorganized
usingdirectives for better clarity. Updated the processing loop inUrilizeto handle normalized spans and ASCII equivalents more effectively. These changes improve link generation compatibility across various languages.#910
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.