mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-14 13:54:55 +00:00
[PR #696] [MERGED] Fix incorrect setext heading source span #1186
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/696
Author: @artempyanykh
Created: 2/11/2023
Status: ✅ Merged
Merged: 2/16/2023
Merged by: @xoofx
Base:
master← Head:fix-setext-span📝 Commits (1)
a6cd283Fix incorrect setext heading source span📊 Changes
2 files changed (+15 additions, -4 deletions)
View changed files
📝
src/Markdig.Tests/TestSourcePosition.cs(+14 -3)📝
src/Markdig/Parsers/ParagraphBlockParser.cs(+1 -1)📄 Description
Previously, heading's span would be 3-6; where 6 is outside the bounds of the original string.
For the context, the original bug report in Marksman #156 (I use markdig there).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.