[PR #629] [CLOSED] ContainerBlock CopyTo IndexOutOfRangeException #1154

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

📋 Pull Request Information

Original PR: https://github.com/xoofx/markdig/pull/629
Author: @ladeak
Created: 4/21/2022
Status: Closed

Base: masterHead: master


📝 Commits (1)

  • 718ef56 Copy ContainerBlocks typo fix

📊 Changes

2 files changed (+21 additions, -1 deletions)

View changed files

📝 src/Markdig.Tests/TestContainerBlocks.cs (+20 -0)
📝 src/Markdig/Syntax/ContainerBlock.cs (+1 -1)

📄 Description

Ref: https://github.com/xoofx/markdig/issues/628

ToList() operation on container blocks throws IndexOutOfRangeException or MarkdownDocument copies values incorrectly.
Fixing typo in the CopyTo method of ContainerBlocks.
Adding a unit test


🔄 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/629 **Author:** [@ladeak](https://github.com/ladeak) **Created:** 4/21/2022 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`718ef56`](https://github.com/xoofx/markdig/commit/718ef563b570979162a4e25d6e802e996151b27b) Copy ContainerBlocks typo fix ### 📊 Changes **2 files changed** (+21 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/Markdig.Tests/TestContainerBlocks.cs` (+20 -0) 📝 `src/Markdig/Syntax/ContainerBlock.cs` (+1 -1) </details> ### 📄 Description Ref: https://github.com/xoofx/markdig/issues/628 `ToList()` operation on container blocks throws IndexOutOfRangeException or MarkdownDocument copies values incorrectly. Fixing typo in the CopyTo method of ContainerBlocks. Adding a unit test --- <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:50:35 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#1154