[PR #893] [MERGED] Fix issue where an inline code block that spans multiple lines doesn't parse correctly #1287

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

📋 Pull Request Information

Original PR: https://github.com/xoofx/markdig/pull/893
Author: @phillip-haydon
Created: 9/22/2025
Status: Merged
Merged: 10/3/2025
Merged by: @xoofx

Base: masterHead: ph/fix-inline-multiline-code-block


📝 Commits (10+)

  • be8b950 fixes issue where an inline code block that spans multiple lines doesn't get treated as code
  • 458088b Update src/Markdig.Tests/TestPipeTable.cs
  • 631f45d Apply suggestion from @MihaZupan
  • 8ad28d6 Update src/Markdig.Tests/TestPipeTable.cs
  • 03b56c3 fix broken test
  • 2fd9fce removed unreachable code and added more tests
  • dfadc47 Update src/Markdig.Tests/TestPipeTable.cs
  • 87b4c64 Update src/Markdig.Tests/TestPipeTable.cs
  • 5a6ed55 removed uncessary inline code check
  • 9eea0f9 Update src/Markdig/Parsers/Inlines/CodeInlineParser.cs

📊 Changes

3 files changed (+116 additions, -13 deletions)

View changed files

📝 src/Markdig.Tests/TestPipeTable.cs (+101 -0)
📝 src/Markdig/Helpers/HtmlHelper.cs (+5 -5)
📝 src/Markdig/Parsers/Inlines/CodeInlineParser.cs (+10 -8)

📄 Description

Based on feedback from PR #891 - this PR fixes inline code block that spans multiple lines.

`
|| hidden text ||
`

🔄 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/893 **Author:** [@phillip-haydon](https://github.com/phillip-haydon) **Created:** 9/22/2025 **Status:** ✅ Merged **Merged:** 10/3/2025 **Merged by:** [@xoofx](https://github.com/xoofx) **Base:** `master` ← **Head:** `ph/fix-inline-multiline-code-block` --- ### 📝 Commits (10+) - [`be8b950`](https://github.com/xoofx/markdig/commit/be8b95094f6c747eed01baf336a61739f85e0d26) fixes issue where an inline code block that spans multiple lines doesn't get treated as code - [`458088b`](https://github.com/xoofx/markdig/commit/458088b72c5931f302c581121ab3fc186a7395cf) Update src/Markdig.Tests/TestPipeTable.cs - [`631f45d`](https://github.com/xoofx/markdig/commit/631f45d573ccdc67017152e967ec570eec9e5b44) Apply suggestion from @MihaZupan - [`8ad28d6`](https://github.com/xoofx/markdig/commit/8ad28d6aa846d991076ce000599949c5b4ca7e0c) Update src/Markdig.Tests/TestPipeTable.cs - [`03b56c3`](https://github.com/xoofx/markdig/commit/03b56c375b8c7297dc0a009cfc2c6916374ef7ea) fix broken test - [`2fd9fce`](https://github.com/xoofx/markdig/commit/2fd9fceb54e4d5000039772c39a64618c4b5e74b) removed unreachable code and added more tests - [`dfadc47`](https://github.com/xoofx/markdig/commit/dfadc47eddb2f9d2fb5fb47ec2805f875a6b09f3) Update src/Markdig.Tests/TestPipeTable.cs - [`87b4c64`](https://github.com/xoofx/markdig/commit/87b4c6492009edb692d04e7b2a9766d6a2240809) Update src/Markdig.Tests/TestPipeTable.cs - [`5a6ed55`](https://github.com/xoofx/markdig/commit/5a6ed55f54a92112a3ae466e0cfa7a2bc2d0645a) removed uncessary inline code check - [`9eea0f9`](https://github.com/xoofx/markdig/commit/9eea0f979cb6c8843b3a1844ad9e0732ee334e89) Update src/Markdig/Parsers/Inlines/CodeInlineParser.cs ### 📊 Changes **3 files changed** (+116 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `src/Markdig.Tests/TestPipeTable.cs` (+101 -0) 📝 `src/Markdig/Helpers/HtmlHelper.cs` (+5 -5) 📝 `src/Markdig/Parsers/Inlines/CodeInlineParser.cs` (+10 -8) </details> ### 📄 Description Based on feedback from PR #891 - this PR fixes inline code block that spans multiple lines. ``` ` || hidden text || ` ``` --- <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:40 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#1287