3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-19 14:45:44 +01:00

5b3: surface the refusal an inline directive body holds

This commit is contained in:
2026-09-03 19:33:25 +02:00
parent a540cdbe02
commit 3398f31626
4 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { backslashEscape, claimsPipeLine, trimSpace } from './commonmark-grammar
const alignmentCell = /^:-+:?$|^-+:$/
const delimiterCell = /^-+$/
// spec/flavour.md, Tables: the cells of a row the leading `|` no claim read, GFM's form without it.
// spec/flavour.md, Tables: the cells of a row no leading `|` claimed — GFM's form without the outer pipes.
export function barePipeCells(line: string): string[] | undefined {
const cells = splitPipeCells(line, 0)
return cells.length > 1 ? cells : undefined