fix: prevent GFM table tokens from greedily capturing trailing newlines (#3926)

Co-authored-by: Pushkar Gupta <your_email@example.com>
This commit is contained in:
Pushkar Gupta
2026-04-06 22:14:37 -06:00
committed by GitHub
co-authored by Pushkar Gupta
parent b379e3e571
commit 40f266560a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -525,7 +525,7 @@ export class _Tokenizer<ParserOutput = string, RendererOutput = string> {
const item: Tokens.Table = {
type: 'table',
raw: cap[0],
raw: rtrim(cap[0], '\n'),
header: [],
align: [],
rows: [],
+1
View File
@@ -1016,6 +1016,7 @@ br
['text', '2'],
['text', '3'],
['text', '4'],
['space', ''],
['blockquote', '> blockquote'],
['paragraph', 'blockquote'],
['text', 'blockquote'],