mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
[PR #247] [MERGED] Expose line start indexes #894
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
master← Head:master📝 Commits (2)
f3bb065Expose line start indexesbdb5119Update changelog📊 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.