Skip to content

Commit 14d7b87

Browse files
committed
Improve inconsistent (and incorrect) pipe table parsing #242
1 parent f3d9087 commit 14d7b87

4 files changed

Lines changed: 28291 additions & 28752 deletions

File tree

‎tree-sitter-markdown/grammar.js‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,9 @@ module.exports = grammar({
445445
),
446446

447447
pipe_table_row: $ => seq(
448-
optional(seq(
449-
optional($._whitespace),
448+
optional(
450449
'|',
451-
)),
450+
),
452451
choice(
453452
seq(
454453
repeat1(prec.right(seq(

‎tree-sitter-markdown/src/grammar.json‎

Lines changed: 2 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)