mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-14 13:54:55 +00:00
[PR #760] [MERGED] Fix source span calculation for LineBreakInline #1211
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/760
Author: @zickb
Created: 12/14/2023
Status: ✅ Merged
Merged: 12/14/2023
Merged by: @xoofx
Base:
master← Head:fix_source_span_calculation_for_linebreak_inline📝 Commits (1)
6f1dce6Fix last LineBreakInline source span in multi block scenario📊 Changes
2 files changed (+34 additions, -2 deletions)
View changed files
📝
src/Markdig.Tests/TestSourcePosition.cs(+32 -0)📝
src/Markdig/Parsers/InlineProcessor.cs(+2 -2)📄 Description
Fix the source span calculation of the last
LineBreakInlinein paragraph when multiple blocks exists.I have added the source span calculation for the last
LineBreakInlinein https://github.com/xoofx/markdig/pull/733, but the logic does not handle multiple blocks correctly. This corrects the logic.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.