diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-10-31 22:05:55 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-10-31 22:09:21 -0400 |
| commit | 21a7ef69ffeeede1c7674e05ef723e90338c5945 (patch) | |
| tree | 6edb991de4ad734c6cc0a4c2ba54a3bdc37c58c5 /md.bqn | |
| parent | 72817aa5dc9e2128f7aa97a7e606cf9e722e2487 (diff) | |
Pass filepath to GenHtml, since it is a scoped ⍎
Diffstat (limited to 'md.bqn')
| -rw-r--r-- | md.bqn | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -161,10 +161,7 @@ blobURL ← repoURL∾"/blob/master/" # Environments _getCodeExec ← {𝕗⋄⍎} -_getSvgExec ← {𝕗 - Compile ← (↕62)⊸(•Import "src/c.bqn") # for tutorial/evalexp.bqn - JoinLines⍟(1<≡)∘(⟨"svg.bqn","⍎"⟩ •Import "dzref") -} +_getSvgExec ← {𝕗⋄JoinLines⍟(1<≡)∘(⟨"svg.bqn","⍎"⟩ •Import "dzref")} ################################ @@ -310,7 +307,7 @@ Markdown ← {filename𝕊𝕩: ProcComment ← { n←≠s←"<!--GEN" ⋄ l←¯3↓⍟(1=≠𝕩)⊑𝕩 ⋄ a←s≡n↑l Source ← {((0<≠)◶<‿(•LNS path∾⊢) Trim n↓l) ∾ 1↓¯1↓𝕩} - GenHtml⍟a JoinLines Source⍟a 𝕩 + ⟨⟨⟩,"",path⟩ GenHtml⍟a JoinLines Source⍟a 𝕩 } ProcHtml ← { codeMask ← "<code>" (6⥊0)⊸»⊸(>○(⌈`(1+↕∘≠)⊸×))○(⍷⟜𝕩 ∾ 0⥊˜1-˜≠) "</code>" |
