Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
fix: bin/mjsre fails on non-svg output
Browse files Browse the repository at this point in the history
Prioritize: svg before html before mml
Fixes #26
  • Loading branch information
pkra committed Feb 8, 2019
1 parent 6cbdd9f commit 3d52b0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/mjsre.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,11 @@ const mjinput = {
linebreaks: argv.linebreaks
}

console.log(argv._[0])
const output = function(result) {
if (result.errors) console.log(result.errors);
else if (argv.css) console.log(result.css);
else console.log(result[argv.output.toLowerCase()]);
else console.log(result.mml || result.html || result.svg);
}

mj.config(mjconf);
Expand Down

0 comments on commit 3d52b0c

Please sign in to comment.