[PR #55] [MERGED] Checks if paragraph block is closed when deciding if continuation list is allowable with character other than '1.' #789

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

📋 Pull Request Information

Original PR: https://github.com/xoofx/markdig/pull/55
Author: @christophano
Created: 9/9/2016
Status: Merged
Merged: 9/14/2016
Merged by: @xoofx

Base: masterHead: bugfix/restart-list-after-paragraph


📝 Commits (1)

  • e7b9eea Checks if paragraph block is closed when deciding if continuation list is allowable with character other than '1.'

📊 Changes

4 files changed (+60 additions, -3 deletions)

View changed files

📝 src/Markdig.Tests/Specs/ListExtraSpecs.md (+18 -0)
📝 src/Markdig.Tests/Specs/Specs.cs (+30 -0)
📝 src/Markdig/Parsers/BlockProcessor.cs (+5 -0)
📝 src/Markdig/Parsers/ListBlockParser.cs (+7 -3)

📄 Description

This fixes #54.
Due to the way IBlock.IsOpen is used, it wasn't possible to just check that property, so I have added an internal method to BlockProcesser to check if the block is still contained in the OpenedBlocks collection.


🔄 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/55 **Author:** [@christophano](https://github.com/christophano) **Created:** 9/9/2016 **Status:** ✅ Merged **Merged:** 9/14/2016 **Merged by:** [@xoofx](https://github.com/xoofx) **Base:** `master` ← **Head:** `bugfix/restart-list-after-paragraph` --- ### 📝 Commits (1) - [`e7b9eea`](https://github.com/xoofx/markdig/commit/e7b9eea3a553d940be40393eb40e81b9e4f1f65d) Checks if paragraph block is closed when deciding if continuation list is allowable with character other than '1.' ### 📊 Changes **4 files changed** (+60 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/Markdig.Tests/Specs/ListExtraSpecs.md` (+18 -0) 📝 `src/Markdig.Tests/Specs/Specs.cs` (+30 -0) 📝 `src/Markdig/Parsers/BlockProcessor.cs` (+5 -0) 📝 `src/Markdig/Parsers/ListBlockParser.cs` (+7 -3) </details> ### 📄 Description This fixes #54. Due to the way `IBlock.IsOpen` is used, it wasn't possible to just check that property, so I have added an internal method to `BlockProcesser` to check if the block is still contained in the `OpenedBlocks` collection. --- <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:45:32 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#789