trypandoc: temporary workaround for #8235.

This commit is contained in:
John MacFarlane 2022-08-19 09:02:13 -07:00
parent d1083e15cb
commit 3e54004415
2 changed files with 6 additions and 2 deletions

View file

@ -175,7 +175,7 @@
<p class="version">pandoc version <span id="version"></span></p> <p class="version">pandoc version <span id="version"></span></p>
</footer> </footer>
<script src="trypandoc.js?202208182155"></script> <script src="trypandoc.js?202208190901"></script>
</body> </body>
</html> </html>

View file

@ -78,7 +78,11 @@ function convert() {
fetch("/cgi-bin/pandoc-server.cgi", { fetch("/cgi-bin/pandoc-server.cgi", {
method: "POST", method: "POST",
headers: {"Content-Type": "application/json"}, headers: {"Content-Type": "application/json"},
body: JSON.stringify(params) body: JSON.stringify({ from: params.from,
to: params.to,
text: params.text,
standalone: params.standalone,
filters: params.citeproc ? ["citeproc"] : [] })
}) })
.then(handleErrors) .then(handleErrors)
.then(response => response.text()) .then(response => response.text())