26 -- Provide TEMPLATE_PATH/katex_config.json if it exists |
26 -- Provide TEMPLATE_PATH/katex_config.json if it exists |
27 katex_config = markdown_it.katex_config(env) |
27 katex_config = markdown_it.katex_config(env) |
28 if katex_config then |
28 if katex_config then |
29 cmd = cmd .. " '" .. katex_config .. "'" |
29 cmd = cmd .. " '" .. katex_config .. "'" |
30 end |
30 end |
31 io.stdout:write('Executing ' .. cmd .. '\n') |
31 -- io.stdout:write('Executing ' .. cmd .. '\n') |
32 h = io.popen(cmd, 'r') |
32 h = io.popen(cmd, 'r') |
33 result = h:read("*a") |
33 result = h:read("*a") |
34 h:close() |
34 h:close() |
35 file:close() |
35 file:close() |
36 return result |
36 return result |