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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user