diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-07-17 20:54:55 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-07-17 20:54:55 -0400 |
| commit | e5843922ebae4ac1539c2cda4aebff90a2ee218a (patch) | |
| tree | a0a1d19155bc653c81813341a5f8192f13d496f0 | |
| parent | 618d199b17bb3a6ea22d7b13d551ff23061f95f3 (diff) | |
Highlight code separately again to avoid quotes carrying over
| -rw-r--r-- | doc/md.bqn | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -384,10 +384,9 @@ GetHighlights ← { } # Return highlights for areas in 𝕩 where 𝕨 is true. GetMultiHighlights ← { - mask ← 1⊸⌽⊸∨ 𝕨 - fill ← ¬ mask / 𝕨 - ⟨c,pos⟩ ← GetHighlights ' '¨⌾(fill⊸/) mask / 𝕩 - ⟨c, pos + fill ((1-˜⍋⟜pos) ⊏ -˜)○/ mask > 𝕨⟩ + start ← 0⊸Shl⊸< 𝕨 + groups ← (1 -˜ 𝕨 × +` start) ⊔ 𝕩 + <∘∾˘ ⍉ ((≠∾2˜) ⥊ ·> (/start) {𝕨⊸+⌾(1⊸⊑)𝕩}⟜GetHighlights¨ ⊢) groups } head ← "<head><link href=""style.css"" rel=""stylesheet""/></head>"∾lf |
