diff options
| author | John MacFarlane <[email protected]> | 2022-08-25 19:57:06 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-08-25 19:57:06 -0700 |
| commit | 3bf08020784a9a5ebc7d903c11b7cb7685b66d8d (patch) | |
| tree | 42bfdc850e774c4bc2b4bf1aed8ef28a6831edf5 | |
| parent | 30277dc2f21785f4ebed48896f2032cbce66e321 (diff) | |
trypandoc: further refinements.
| -rw-r--r-- | trypandoc/index.html | 1 | ||||
| -rw-r--r-- | trypandoc/trypandoc.js | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/trypandoc/index.html b/trypandoc/index.html index eb82c8636..acc8c72f6 100644 --- a/trypandoc/index.html +++ b/trypandoc/index.html @@ -117,6 +117,7 @@ <option value="custom">Custom</option> </select> <div id="customtemplate"> + <span>custom.tpl</span> <textarea id="templatetext"></textarea> </div> </div> diff --git a/trypandoc/trypandoc.js b/trypandoc/trypandoc.js index 02ae394a0..77f29283c 100644 --- a/trypandoc/trypandoc.js +++ b/trypandoc/trypandoc.js @@ -95,10 +95,14 @@ function convert() { errs.textContent = ""; console.log(params); + let mm = params["html-math-method"]; + let mathopts = mm == "plain" ? "" : (" --" + mm) let commandString = "pandoc" + " --from " + params.from + " --to " + params.to + (params.standalone ? " --standalone" : "") - + (params.citeproc ? " --citeproc" : "") ; + + (params.template ? " --template=custom.tpl" : "") + + (params.citeproc ? " --citeproc" : "") + + mathopts ; document.getElementById("command").textContent = commandString; fetch("/cgi-bin/pandoc-server.cgi", { method: "POST", |
