This commit is contained in:
2025-06-16 20:18:05 -07:00
parent 338b7eb747
commit 09918abe97
2 changed files with 16 additions and 8 deletions

View File

@@ -17,10 +17,12 @@ write_exec = (input, cmd, ...) ->
convert = =>
(md_source) ->
markup_filename = os.tmpname!
write_exec md_source, @cmd, markup_filename
Path.read_file markup_filename
filename = os.tmpname!
write_exec md_source, @cmd, filename
Path.read_file filename
-- config command like this in site.moon:
-- require("renderers.markdown").cmd = "pandoc --mathjax >"
class PandocRenderer extends require "sitegen.renderers.markdown"
unescape_cosmo = @unescape_cosmo
escape_cosmo = @escape_cosmo