[PR #902] [MERGED] Fix edge cases in EmphasisInlineParser #1292

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

📋 Pull Request Information

Original PR: https://github.com/xoofx/markdig/pull/902
Author: @MihaZupan
Created: 10/16/2025
Status: Merged
Merged: 10/17/2025
Merged by: @xoofx

Base: masterHead: emphasis-fixes


📝 Commits (1)

  • a16212c Fix edge cases in EmphasisInlineParser

📊 Changes

4 files changed (+11 additions, -6 deletions)

View changed files

📝 src/Markdig.Tests/TestEmphasisExtended.cs (+3 -0)
📝 src/Markdig/Helpers/UnicodeUtility.cs (+1 -1)
📝 src/Markdig/Parsers/Inlines/EmphasisDescriptor.cs (+2 -0)
📝 src/Markdig/Parsers/Inlines/EmphasisInlineParser.cs (+5 -5)

📄 Description

Existing logic wasn't really accounting for emphasis with > 1 minimums.
Found with the same fuzzer that got me the input for #900 - I'll commit that separately.


🔄 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/902 **Author:** [@MihaZupan](https://github.com/MihaZupan) **Created:** 10/16/2025 **Status:** ✅ Merged **Merged:** 10/17/2025 **Merged by:** [@xoofx](https://github.com/xoofx) **Base:** `master` ← **Head:** `emphasis-fixes` --- ### 📝 Commits (1) - [`a16212c`](https://github.com/xoofx/markdig/commit/a16212c78fe99df03d3e336ca92ec5fe32699cf6) Fix edge cases in EmphasisInlineParser ### 📊 Changes **4 files changed** (+11 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/Markdig.Tests/TestEmphasisExtended.cs` (+3 -0) 📝 `src/Markdig/Helpers/UnicodeUtility.cs` (+1 -1) 📝 `src/Markdig/Parsers/Inlines/EmphasisDescriptor.cs` (+2 -0) 📝 `src/Markdig/Parsers/Inlines/EmphasisInlineParser.cs` (+5 -5) </details> ### 📄 Description Existing logic wasn't really accounting for emphasis with `> 1` minimums. Found with the same fuzzer that got me the input for #900 - I'll commit that separately. --- <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:42 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#1292