aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdzref2
-rwxr-xr-xgendocs5
-rw-r--r--md.bqn2
3 files changed, 4 insertions, 5 deletions
diff --git a/dzref b/dzref
index 863597e8..388280ba 100755
--- a/dzref
+++ b/dzref
@@ -66,6 +66,7 @@ ProgressiveIndexOf ← {𝕨⊐○(≍˘⟜OccurrenceCount𝕨⊸⊐)𝕩}
raw ← {⍎}
X ← {F:≤4}
+_withRef ← ˙
{v:
chrs←⟨
"↕⊐⊒∊⍷"
@@ -118,6 +119,7 @@ X ← {F:≤4}
Raw ∾ ∾⟜lf¨ path <⊸∾ src
}
X↩Raw∘E_proc
+ _withRef ↩ {𝕗∘E_proc}
Raw ∾ ∾⟜lf¨ pre
≠◶(X˙)‿{ExecFile ⊑𝕩}‿{ExecFile ⊑𝕩 ⋄ X 1⊑𝕩} •args
}
diff --git a/gendocs b/gendocs
index 9355bbd3..4853e624 100755
--- a/gendocs
+++ b/gendocs
@@ -2,7 +2,4 @@
# Generate HTML files from markdown ones
# Argument gives specific files if present; otherwise convert everything
-for f in ${1-*.md */*.md} ${@:2:$#}
-do
- ./dzref md.bqn "ConvertFile \"$f\""
-done
+./dzref md.bqn "ConvertFile¨ (¬×+\`)⊸-∘=⟜' '⊸⊔ \"$(echo ${1-*.md */*.md} ${@:2:$#})\""
diff --git a/md.bqn b/md.bqn
index 5a20d639..1bf6ff0c 100644
--- a/md.bqn
+++ b/md.bqn
@@ -237,7 +237,7 @@ Markdown ← {filename𝕊𝕩:
mod ← ⟨em,e∾c∾r,ei∾ci∾ri⟩ Modify code
𝕩 Link⊸∾⍟addRslt "pre" Html "code" Html⍟(¬extensions) mod
}
- CodeExec ← X # dzaima+reference exec. Should be {⍎}
+ CodeExec ← {⍎}_withRef # dzaima+reference exec. Should be {⍎}
# Headings start with #, and require 1-6 #s followed by a space.
# Any trailing #s are ignored.