[PR #911] [MERGED] feat(link-helper): improve ASCII normalization handling #1302

Open
opened 2026-01-29 14:52:54 +00:00 by claunia · 0 comments
Owner

📋 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: masterHead: Linkhelper


📝 Commits (3)

  • 0194e40 feat(link-helper): improve ASCII normalization handling
  • eb4e5b1 Add tests for Scandinavian and German character normalization
  • 2711dd2 test(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 Urilize method to better handle ASCII normalization and special characters. Added support for decomposing characters when allowOnlyAscii is true and skipping diacritical marks. Introduced handling for special German, Scandinavian, and Icelandic characters via new helper methods: IsSpecialScandinavianOrGermanChar and NormalizeScandinavianOrGermanChar.

Reorganized using directives for better clarity. Updated the processing loop in Urilize to 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.

## 📋 Pull Request Information **Original PR:** https://github.com/xoofx/markdig/pull/911 **Author:** [@mos379](https://github.com/mos379) **Created:** 10/29/2025 **Status:** ✅ Merged **Merged:** 11/10/2025 **Merged by:** [@xoofx](https://github.com/xoofx) **Base:** `master` ← **Head:** `Linkhelper` --- ### 📝 Commits (3) - [`0194e40`](https://github.com/xoofx/markdig/commit/0194e40374fdc3a2e96e6658da984dd8e6e36f95) feat(link-helper): improve ASCII normalization handling - [`eb4e5b1`](https://github.com/xoofx/markdig/commit/eb4e5b19af3ffe76e831eb55190f190ce49ee2b3) Add tests for Scandinavian and German character normalization - [`2711dd2`](https://github.com/xoofx/markdig/commit/2711dd2a9cdccfaea83e2b9330e3209a76a2824a) test(link-helper): update ASCII transliteration tests ### 📊 Changes **2 files changed** (+158 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `src/Markdig.Tests/TestLinkHelper.cs` (+77 -8) 📝 `src/Markdig/Helpers/LinkHelper.cs` (+81 -7) </details> ### 📄 Description feat(link-helper): improve ASCII normalization handling Enhanced the `Urilize` method to better handle ASCII normalization and special characters. Added support for decomposing characters when `allowOnlyAscii` is true and skipping diacritical marks. Introduced handling for special German, Scandinavian, and Icelandic characters via new helper methods: `IsSpecialScandinavianOrGermanChar` and `NormalizeScandinavianOrGermanChar`. Reorganized `using` directives for better clarity. Updated the processing loop in `Urilize` to handle normalized spans and ASCII equivalents more effectively. These changes improve link generation compatibility across various languages. #910 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 14:52:54 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#1302