diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-02-15 20:52:54 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-02-15 20:59:31 -0500 |
| commit | 19d4e4da6a93deb398f87bb6b42b1b1ee3c4926e (patch) | |
| tree | cba3ffb2e035aae2cc828d3289f5e586c2bd4589 /md.bqn | |
| parent | 4fd3566067b123ba53e0923520bdc8e19fad7d83 (diff) | |
Give an empty result, not an error, whenever 𝕨 is longer than 𝕩 in Find
Diffstat (limited to 'md.bqn')
| -rw-r--r-- | md.bqn | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -310,7 +310,7 @@ Markdown ← {filename𝕊𝕩: ⟨⟨⟩,"",path⟩ GenHtml⍟a JoinLines Source⍟a 𝕩 } ProcHtml ← { - codeMask ← "<code>" (6⥊0)⊸»⊸(>○(⌈`(1+↕∘≠)⊸×))○(⍷⟜𝕩 ∾ 0⥊˜1-˜≠) "</code>" + codeMask ← "<code>" (6⥊0)⊸»⊸(>○(⌈`(1+↕∘≠)⊸×))○((≠𝕩)↑⍷⟜𝕩) "</code>" (1¨ <⊸∾ codeMask⊸GetMultiHighlights)⊸Modify 𝕩 }⟜JoinLines ProcHtmlBlock ← extensions◶JoinLines‿(<⟜2◶ProcComment‿ProcHtml) @@ -449,7 +449,7 @@ Markdown ← {filename𝕊𝕩: # Chase HTML comments commentStart ← /(lineType=5)∧lineDat=2 - EndsComment ← (3≤≠)◶0‿(∨´"-->"⍷⊢)∘(⊑⟜𝕩) + EndsComment ← ∨´"-->"⍷⊑⟜𝕩 lastCommentEnd ← ¯1 comInd ← ∾ comments ← { lastCommentEnd ↩ end ← {𝕊⍟(¬EndsComment)1+𝕩}⍟(lastCommentEnd⊸<) 𝕩-1 |
