diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-10-23 09:54:18 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-10-23 09:59:10 -0400 |
| commit | 63b3321c62dabec3665756704eaceaed22eb5b4a (patch) | |
| tree | 7579e8dd4d7c0b3353427b3ef46653bb250ee42d /md.bqn | |
| parent | 69a970243bc59c3b7b2706a9b32cceb0bda7512c (diff) | |
Rename SVG to GEN since really it makes arbitrary HTML
Diffstat (limited to 'md.bqn')
| -rw-r--r-- | md.bqn | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -182,7 +182,7 @@ Markdown ← {filename𝕊𝕩: path ← extensions◶""‿(⊢/˜·∨`⌾⌽'/'⊸=) filename CodeExec ← @_getCodeExec - SvgExec ← @_getSvgExec + GenHtml ← @_getSvgExec ###### # First we classify each line based on the type of block it can start. @@ -318,9 +318,9 @@ Markdown ← {filename𝕊𝕩: IsHtmlBlock ← ("<!--"≡4↑⊢)◶('>'∨´∘=⊢)‿2 useRepl←0 ⋄ GetRepl ← {𝕩⋄ useRepl↩1 ⋄ repl} ProcComment ← ⟨"<!--REPL-->"⟩⊸≢◶GetRepl‿{ - n←≠s←"<!--SVG" ⋄ l←¯3↓⍟(1=≠𝕩)⊑𝕩 ⋄ a←s≡n↑l + n←≠s←"<!--GEN" ⋄ l←¯3↓⍟(1=≠𝕩)⊑𝕩 ⋄ a←s≡n↑l Source ← {((0<≠)◶<‿(•LNS path∾⊢) Trim n↓l) ∾ 1↓¯1↓𝕩} - SvgExec⍟a JoinLines Source⍟a 𝕩 + GenHtml⍟a JoinLines Source⍟a 𝕩 } ProcHtml ← { codeMask ← "<code>" (6⥊0)⊸»⊸(>○(⌈`(1+↕∘≠)⊸×))○(⍷⟜𝕩 ∾ 0⥊˜1-˜≠) "</code>" |
