This commit is contained in:
2025-05-25 18:08:05 -07:00
parent 3470d29a24
commit 5235d5a65d
2 changed files with 3 additions and 34 deletions

View File

@@ -19,9 +19,7 @@ convert = =>
(md_source) ->
filename = os.tmpname!
write_exec md_source, @cmd, filename
a = Path.read_file filename
require("moon").p a
a
Path.read_file filename
-- fname = os.tmpname!
-- with io.open fname, "w"
@@ -39,11 +37,7 @@ class PandocRenderer extends require "sitegen.renderers.markdown"
escape_cosmo = @escape_cosmo
pandoc = convert @
-- cmd: "pandoc >"
cmd: "pandoc --mathjax --lua-filter pygments.lua >"
-- cmd: "pygmentize -f html -l %s %s"
-- cmd: "pygmentize -f html -l %s %s -x"
-- cmd: "pygmentize -f html -l moonscript.py test.moon -x -o lexer-test.html"
cmd: "pandoc >"
render: (page, md_source) =>
md_source = page\pipe "renderer.markdown.pre_render", md_source