trypandoc: call results 'html' instead of 'result'.
This is for better compatibility with babelmark2.
commit43382cead2f578be6e1f4a2813165e51e017e2e3
authorJohn MacFarlane <jgm@berkeley.edu>
dateTue 7 Jun 2016, 23:37 (10 years ago)
parent3e06172
trypandoc/index.html+1−1
@@ -39,7 +39,7 @@ $(document).ready(function() {
3939 if (text && text != "") {
4040 $.getJSON("/cgi-bin/trypandoc", { from: from, to: to, text: text },
4141 function(res) {
42− $("#results").text(res.result);
42+ $("#results").text(res.html);
4343 $("#version").text(res.version);
4444 $("#command").text("pandoc --from " + from + " --to " + to);
4545 });
trypandoc/trypandoc.hs+1−1
@@ -33,7 +33,7 @@ app req respond = do
3333 let result = case reader $ tabFilter 4 $ T.unpack text of
3434 Right doc -> T.pack $ writer doc
3535 Left err -> error (show err)
36− let output = encode $ object [ T.pack "result" .= result
36+ let output = encode $ object [ T.pack "html" .= result
3737 , T.pack "name" .=
3838 if fromFormat == "markdown_strict"
3939 then T.pack "pandoc (strict)"