Commit 900cbf6
fix(web): handle double-backtick code spans and preserve tree root on re-parse
- countSourceCells: use /`+[^`]*?`+/g so double-backtick spans like
`` `a | b` `` are also stripped before counting column boundaries
- remarkRepairTables: Object.assign(tree, newTree) instead of only
copying children, so position/data from the root node are preserved
via [HAPI](https://hapi.run)
Co-Authored-By: HAPI <noreply@hapi.run>1 parent b04947a commit 900cbf6
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
0 commit comments