diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-10-03 16:56:23 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-10-03 17:08:14 -0400 |
| commit | 4190c5861db9330d83389a07a3563d28bbe511f9 (patch) | |
| tree | a2e4bbfce0c50f50f85afa4985b336153d5b8e37 | |
| parent | 673de1c627a2046123e1693e9e6508399a028508 (diff) | |
Convert all markdown files within one BQN execution
| -rwxr-xr-x | dzref | 2 | ||||
| -rwxr-xr-x | gendocs | 5 | ||||
| -rw-r--r-- | md.bqn | 2 |
3 files changed, 4 insertions, 5 deletions
@@ -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 } @@ -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:$#})\"" @@ -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. |
