aboutsummaryrefslogtreecommitdiff
path: root/md.bqn
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-10-31 22:05:55 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-10-31 22:09:21 -0400
commit21a7ef69ffeeede1c7674e05ef723e90338c5945 (patch)
tree6edb991de4ad734c6cc0a4c2ba54a3bdc37c58c5 /md.bqn
parent72817aa5dc9e2128f7aa97a7e606cf9e722e2487 (diff)
Pass filepath to GenHtml, since it is a scoped ⍎
Diffstat (limited to 'md.bqn')
-rw-r--r--md.bqn7
1 files changed, 2 insertions, 5 deletions
diff --git a/md.bqn b/md.bqn
index 92c7090a..b54e27dd 100644
--- a/md.bqn
+++ b/md.bqn
@@ -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>"