trypandoc: call results 'html' instead of 'result'.
This is for better compatibility with babelmark2.
This commit is contained in:
parent
3e06172a00
commit
43382cead2
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ $(document).ready(function() {
|
|||
if (text && text != "") {
|
||||
$.getJSON("/cgi-bin/trypandoc", { from: from, to: to, text: text },
|
||||
function(res) {
|
||||
$("#results").text(res.result);
|
||||
$("#results").text(res.html);
|
||||
$("#version").text(res.version);
|
||||
$("#command").text("pandoc --from " + from + " --to " + to);
|
||||
});
|
||||
|
|
|
@ -33,7 +33,7 @@ app req respond = do
|
|||
let result = case reader $ tabFilter 4 $ T.unpack text of
|
||||
Right doc -> T.pack $ writer doc
|
||||
Left err -> error (show err)
|
||||
let output = encode $ object [ T.pack "result" .= result
|
||||
let output = encode $ object [ T.pack "html" .= result
|
||||
, T.pack "name" .=
|
||||
if fromFormat == "markdown_strict"
|
||||
then T.pack "pandoc (strict)"
|
||||
|
|
Loading…
Reference in a new issue