aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-07-17 21:03:22 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-07-17 21:03:22 -0400
commit7d3af92a20237eed83b943fa74aa2a086e657658 (patch)
treebd5a4f4ad9567ebe3cf25b8733403759bb5a1ade
parente5843922ebae4ac1539c2cda4aebff90a2ee218a (diff)
Pad short table rows with cells to match header
-rw-r--r--doc/md.bqn1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/md.bqn b/doc/md.bqn
index 7c88d75a..33261326 100644
--- a/doc/md.bqn
+++ b/doc/md.bqn
@@ -174,6 +174,7 @@ Markdown ← {𝕊𝕩:1𝕊𝕩; extensions𝕊𝕩:
rows ← (Trim¨ CutRow⊸⊔)¨ 𝕩
inc ← ¬ rule ← ∧´∘∾¨'-'=rows
rows ↩ ProcInline¨¨⌾(inc⊸/) rows
+ rows ↩ (⊏rows) (⊢ ∾ ⟨""⟩ /˜ 0⌈-○≠)¨ rows
rowType ← inc / +` rule # Head or body
DoRow ← { lf ∾ JoinLines 𝕨⊸Html¨ 𝕩 }
rows ↩ (rowType ⊏ "th"‿"td") DoRow¨ inc/rows