[PR #888] [MERGED] Fixes issue #845 #1279

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

📋 Pull Request Information

Original PR: https://github.com/xoofx/markdig/pull/888
Author: @prozolic
Created: 9/6/2025
Status: Merged
Merged: 9/11/2025
Merged by: @xoofx

Base: masterHead: pullreq


📝 Commits (2)

📊 Changes

2 files changed (+24 additions, -0 deletions)

View changed files

📝 src/Markdig.Tests/MiscTests.cs (+23 -0)
📝 src/Markdig/Parsers/ListBlockParser.cs (+1 -0)

📄 Description

This PR fixes the bug reported in issue #845.
With this fix, in the following case:

var result = Markdown.ToHtml("-\n\n-\n\n  foo");

This result will be produced:

<ul>
<li></li>
<li></li>
</ul>
<p>foo</p>

🔄 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/888 **Author:** [@prozolic](https://github.com/prozolic) **Created:** 9/6/2025 **Status:** ✅ Merged **Merged:** 9/11/2025 **Merged by:** [@xoofx](https://github.com/xoofx) **Base:** `master` ← **Head:** `pullreq` --- ### 📝 Commits (2) - [`14406bc`](https://github.com/xoofx/markdig/commit/14406bc60d515bfe3bc96b017560d22fb5b9805b) Fixes issue #845 - [`5e6fb2d`](https://github.com/xoofx/markdig/commit/5e6fb2d1c538ada61f10e21d747ab1b5c122c894) Add test for issue #845 list item blank line ### 📊 Changes **2 files changed** (+24 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/Markdig.Tests/MiscTests.cs` (+23 -0) 📝 `src/Markdig/Parsers/ListBlockParser.cs` (+1 -0) </details> ### 📄 Description This PR fixes the bug reported in issue #845. With this fix, in the following case: ```csharp var result = Markdown.ToHtml("-\n\n-\n\n foo"); ``` This result will be produced: ``` <ul> <li></li> <li></li> </ul> <p>foo</p> ``` --- <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:30 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#1279