Skip to content

Commit

Permalink
Merge pull request #834 from snnz/fix-gridtables
Browse files Browse the repository at this point in the history
Fix an incorrect offset in GridTableParser.
  • Loading branch information
xoofx authored Dec 18, 2024
2 parents 57fad6f + e92a809 commit b8a3c27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Markdig/Extensions/Tables/GridTableParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ private BlockState HandleContents(BlockProcessor processor, GridTableState table
{
sliceForCell.End = line.Start + columnEnd - 1;
}
else if (line.PeekCharExtra(line.End) == '|')
else if (line.PeekCharExtra(line.End - line.Start) == '|')
{
sliceForCell.End = line.End - 1;
}
Expand Down

0 comments on commit b8a3c27

Please sign in to comment.