[PR #759] [MERGED] Make StringLineGroup returns a count limited Enumerator #1212

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

📋 Pull Request Information

Original PR: https://github.com/xoofx/markdig/pull/759
Author: @Akarinnnnn
Created: 12/11/2023
Status: Merged
Merged: 12/12/2023
Merged by: @xoofx

Base: masterHead: fix-757


📝 Commits (5)

  • 2ab716b Make StringLineGroup returns a count limited Enumerator
  • e78833a Update src/Markdig/Helpers/StringLineGroup.cs
  • 65a02e4 Add Enumerator GetEnumerator() for StringLineGroup
  • ba1e562 Fix complication error of StringLineGroup.
  • 2ae2cf9 Add tests for non-boxed enumerator of StringLineGroup.

📊 Changes

2 files changed (+57 additions, -4 deletions)

View changed files

📝 src/Markdig.Tests/TestStringSliceList.cs (+25 -1)
📝 src/Markdig/Helpers/StringLineGroup.cs (+32 -3)

📄 Description

Fixes #757, before we return the array enumerator directly, enumerate it will get phantom empty lines.


🔄 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/759 **Author:** [@Akarinnnnn](https://github.com/Akarinnnnn) **Created:** 12/11/2023 **Status:** ✅ Merged **Merged:** 12/12/2023 **Merged by:** [@xoofx](https://github.com/xoofx) **Base:** `master` ← **Head:** `fix-757` --- ### 📝 Commits (5) - [`2ab716b`](https://github.com/xoofx/markdig/commit/2ab716bec1b2240c9ee2df8613dd460ecb1b26b1) Make StringLineGroup returns a count limited Enumerator - [`e78833a`](https://github.com/xoofx/markdig/commit/e78833ae30ac75c855979652e3da80369c360a77) Update src/Markdig/Helpers/StringLineGroup.cs - [`65a02e4`](https://github.com/xoofx/markdig/commit/65a02e44ec8467a22cdf05125028e735e1d0cbe1) Add `Enumerator GetEnumerator()` for `StringLineGroup` - [`ba1e562`](https://github.com/xoofx/markdig/commit/ba1e562d2fe7418efeb53f466712bbd6ad9c39f9) Fix complication error of `StringLineGroup`. - [`2ae2cf9`](https://github.com/xoofx/markdig/commit/2ae2cf9263d5d0e3752ebf94b0021c5e8bf92d63) Add tests for non-boxed enumerator of `StringLineGroup`. ### 📊 Changes **2 files changed** (+57 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/Markdig.Tests/TestStringSliceList.cs` (+25 -1) 📝 `src/Markdig/Helpers/StringLineGroup.cs` (+32 -3) </details> ### 📄 Description Fixes #757, before we return the array enumerator directly, enumerate it will get phantom empty lines. --- <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:51:27 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#1212