diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-07-17 20:39:24 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-07-17 20:39:24 -0400 |
| commit | 618d199b17bb3a6ea22d7b13d551ff23061f95f3 (patch) | |
| tree | 24a19d2ab5dad3890d060d1b1df3777e5845ccd6 /doc | |
| parent | 73dc9172b8686444bc1e6126a0f4377e8373fbb7 (diff) | |
Support unordered lists with 1-line items
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/md.bqn | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |
