From e92a8097d0d0dd1f0c2afb8355905f059f55e3c2 Mon Sep 17 00:00:00 2001 From: Sergey Nozhenko Date: Wed, 18 Dec 2024 02:36:56 +0300 Subject: [PATCH] Fixes an incorrect offset in GridTableParser. --- src/Markdig/Extensions/Tables/GridTableParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Markdig/Extensions/Tables/GridTableParser.cs b/src/Markdig/Extensions/Tables/GridTableParser.cs index 173dc014..0dc268fa 100644 --- a/src/Markdig/Extensions/Tables/GridTableParser.cs +++ b/src/Markdig/Extensions/Tables/GridTableParser.cs @@ -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; }