[PR #838] [MERGED] Implemented better indent control in TextRendererBase #1246

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

📋 Pull Request Information

Original PR: https://github.com/xoofx/markdig/pull/838
Author: @Melodi17
Created: 12/31/2024
Status: Merged
Merged: 2/28/2025
Merged by: @xoofx

Base: masterHead: master


📝 Commits (2)

  • 88c5b5c Added method for clearing indents in TextRendererBase as well as added case handling to PopIndent()
  • 1482784 Added error throwing when stack is empty and PopIndent() is called

📊 Changes

1 file changed (+10 additions, -6 deletions)

View changed files

📝 src/Markdig/Renderers/TextRendererBase.cs (+10 -6)

📄 Description

  • Added method for clearing all indents
  • Added logic in PopIndent for when indents are below 1 (TODO mentioned implementing this)

🔄 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/838 **Author:** [@Melodi17](https://github.com/Melodi17) **Created:** 12/31/2024 **Status:** ✅ Merged **Merged:** 2/28/2025 **Merged by:** [@xoofx](https://github.com/xoofx) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`88c5b5c`](https://github.com/xoofx/markdig/commit/88c5b5cb410f7c8507e61dca4731e6e558bfa78b) Added method for clearing indents in TextRendererBase as well as added case handling to PopIndent() - [`1482784`](https://github.com/xoofx/markdig/commit/148278417f5aeee2e523ee9ad2fea4500320fa23) Added error throwing when stack is empty and PopIndent() is called ### 📊 Changes **1 file changed** (+10 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/Markdig/Renderers/TextRendererBase.cs` (+10 -6) </details> ### 📄 Description - Added method for clearing all indents - Added logic in PopIndent for when indents are below 1 (TODO mentioned implementing this) --- <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:00 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#1246