mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 05:44:50 +00:00
[PR #834] [MERGED] Fix an incorrect offset in GridTableParser. #1243
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/834
Author: @snnz
Created: 12/17/2024
Status: ✅ Merged
Merged: 12/18/2024
Merged by: @xoofx
Base:
master← Head:fix-gridtables📝 Commits (1)
e92a809Fixes an incorrect offset in GridTableParser.📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/Markdig/Extensions/Tables/GridTableParser.cs(+1 -1)📄 Description
Instead of the intended index to the table line content, an offset to the global source is used. The resulting offset is beyond the end of the table line, and if there happens to be a bar '|' there, the last character of the line is cut off.
For example:
The start of the second line of the table (9) + the line end (14) is 23, and there is a bar at 23. So this string results in a table containing "11", "1" (not "12").
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.