Commit fa67110
committed
fix: strip blockquote continuation prefix from table rows in parser
get_node_text() only applies col_start offset to the first line of a
tree-sitter node. For tables inside blockquotes, lines 2+ retain the
'> ' prefix, causing the lpeg row parser to fail silently and produce
empty results. This left separator and data rows unrendered.
Strip the prefix via line:sub(col_start + 1) for lines after the first,
and skip empty/blank lines (e.g. trailing '>' markers).1 parent 33456cb commit fa67110
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
888 | 895 | | |
889 | 896 | | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
890 | 901 | | |
891 | 902 | | |
892 | 903 | | |
| |||
917 | 928 | | |
918 | 929 | | |
919 | 930 | | |
| 931 | + | |
| 932 | + | |
920 | 933 | | |
921 | 934 | | |
922 | 935 | | |
| |||
0 commit comments