aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-10-01 22:01:20 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-10-01 22:01:20 -0400
commit70153de8c77ead4849e45fad0eaaacb7c6f5ac1f (patch)
tree264c8da8f132ea5dcc633ab6864c8ed376716c11
parent3b3463349990ec179f42a8a805ecd3a3f06b9dbb (diff)
Drop extra cells if a row is longer than the header in a markdown table
-rw-r--r--md.bqn2
1 files changed, 1 insertions, 1 deletions
diff --git a/md.bqn b/md.bqn
index 45fdada0..de6d9203 100644
--- a/md.bqn
+++ b/md.bqn
@@ -259,7 +259,7 @@ Markdown ← {filename𝕊𝕩:
rows ← (Trim¨ CutTableRow⊸⊔)¨ 𝕩
incl ← ¬ rule ← (∧´∾∊"-:"˙)¨ rows
align ← alignments ⊏˜ (+˜⊸+´0‿¯1⊏⊢)¨ ':' = ⊑ rule / rows
- rows ↩ ProcInline¨¨⌾(incl⊸/) rows
+ rows ↩ (((≠align)⌊≠)⊸↑ ProcInline¨)¨⌾(incl⊸/) rows
rows ↩ (⊏rows) (⊢ ∾ ⟨""⟩ /˜ 0⌈-○≠)¨ rows
rowType ← incl / +` rule # Head or body
tags ← rowType ⊏ "th"‿"td"