[PR #247] [MERGED] Expose line start indexes #894

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

📋 Pull Request Information

Original PR: https://github.com/xoofx/markdig/pull/247
Author: @MihaZupan
Created: 9/25/2018
Status: Merged
Merged: 9/26/2018
Merged by: @xoofx

Base: masterHead: master


📝 Commits (2)

📊 Changes

4 files changed (+16 additions, -1 deletions)

View changed files

📝 changelog.md (+3 -1)
📝 src/Markdig/Parsers/BlockProcessor.cs (+2 -0)
📝 src/Markdig/Parsers/MarkdownParser.cs (+3 -0)
📝 src/Markdig/Syntax/MarkdownDocument.cs (+8 -0)

📄 Description

This makes precise source locations much more reliable since it removes the need to ferry around two line and column numbers alongside the span. Sample location algorithm made possible by this:
https://github.com/MihaZupan/MarkdownValidator/blob/master/src/MarkdownValidator/Warnings/WarningLocation.cs#L54-L73
I think it being available only when PreciseSourceLocation is set is fitting.


🔄 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/247 **Author:** [@MihaZupan](https://github.com/MihaZupan) **Created:** 9/25/2018 **Status:** ✅ Merged **Merged:** 9/26/2018 **Merged by:** [@xoofx](https://github.com/xoofx) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`f3bb065`](https://github.com/xoofx/markdig/commit/f3bb06531ed8ad2d55784fd7f124de0330f4271a) Expose line start indexes - [`bdb5119`](https://github.com/xoofx/markdig/commit/bdb51198068c00ffc9aa282f004507b880a34cb5) Update changelog ### 📊 Changes **4 files changed** (+16 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `changelog.md` (+3 -1) 📝 `src/Markdig/Parsers/BlockProcessor.cs` (+2 -0) 📝 `src/Markdig/Parsers/MarkdownParser.cs` (+3 -0) 📝 `src/Markdig/Syntax/MarkdownDocument.cs` (+8 -0) </details> ### 📄 Description This makes precise source locations much more reliable since it removes the need to ferry around two line and column numbers alongside the span. Sample location algorithm made possible by this: https://github.com/MihaZupan/MarkdownValidator/blob/master/src/MarkdownValidator/Warnings/WarningLocation.cs#L54-L73 I think it being available only when PreciseSourceLocation is set is fitting. --- <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:46:57 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#894