aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-07-17 20:39:24 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-07-17 20:39:24 -0400
commit618d199b17bb3a6ea22d7b13d551ff23061f95f3 (patch)
tree24a19d2ab5dad3890d060d1b1df3777e5845ccd6 /doc
parent73dc9172b8686444bc1e6126a0f4377e8373fbb7 (diff)
Support unordered lists with 1-line items
Diffstat (limited to 'doc')
-rw-r--r--doc/md.bqn9
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/md.bqn b/doc/md.bqn
index 9a3c90bc..41b4ec2a 100644
--- a/doc/md.bqn
+++ b/doc/md.bqn
@@ -151,8 +151,11 @@ Markdown ← {𝕊𝕩:1𝕊𝕩; extensions𝕊𝕩:
}⟜⊑
# List items start with a bullet (unordered) or number (ordered).
- LenBullet ← 2 × 1 (<⟜≠)◶⟨0,' '=⊑⟩ ⊢
- LenListNum ← {
+ LenBullet ← +⟜× ·≤⟜4⊸× ·Lead ' '=1⊸↓
+ ProcBullet ← {
+ "ul" Html lf ∾ JoinLines ("li" Html ProcInline)¨ 𝕨 ↓¨ 𝕩
+ }
+ LenListNum ← { # Not used yet
n ← Lead 𝕩∊•d
l ← (1≤n) ∧ (9≥n)
' ' = n ↓ 𝕩
@@ -196,7 +199,7 @@ Markdown ← {𝕊𝕩:1𝕊𝕩; extensions𝕊𝕩:
"" ‿ (!∘0) ‿ ProcParagraph
"#" ‿ LenHeading ‿ ProcHeading
" " ‿ IsCode ‿ ProcCode
- # "-+*" ‿ LenBullet ‿ ProcBullet
+ "-+*" ‿ LenBullet ‿ ProcBullet
# •d ‿ LenListNum ‿ ProcListNum
"|" ‿ IsTable ‿ ProcTable
"<" ‿ IsHtmlBlock ‿ ProcHtmlBlock