3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-18 22:25:44 +01:00

Answer stability round 1: 1 🔴, 2 🟡; a line indented four columns stays code under a table, tests pin the claim checks, the error row names a ragged body row

This commit is contained in:
2026-10-14 00:47:22 +02:00
committed by Lillem4n
parent 696ee21e63
commit 8a5e7dfa45
3 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -378,7 +378,7 @@ function readBlockLine(walk: Walk, line: Line): void {
return
}
if (leaf?.kind === 'pipe-table') {
const cells = pipeTableRow(walk.claims, removeColumns(line, largestOpenerIndentation).text)
const cells = leadingColumns(line) < indentedCodeColumns ? pipeTableRow(walk.claims, removeColumns(line, largestOpenerIndentation).text) : undefined
if (cells !== undefined) {
leaf.rows.push(cells)
return
@@ -421,7 +421,7 @@ function openLeaf(walk: Walk, line: Line): void {
else pushFault(walk, directive.fault)
return
}
if (openGfmTable(walk, opener)) return
if (leadingColumns(line) < indentedCodeColumns && openGfmTable(walk, opener)) return
const cells = walk.claims.pipeTables === false ? undefined : pipeCells(opener)
if (cells !== undefined) {
closeLeaf(walk)