Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
Ensure state of input-parameters does not get modified
Browse files Browse the repository at this point in the history
  • Loading branch information
Hufschmidt committed Sep 21, 2017
1 parent f7b5f87 commit 7745f6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ var svg2png = require('svg2png');
//

exports.typeset = function(data, callback) {
var svg = data.svg;
if (data.png) data.svg = true;
mathjax.typeset(data, function(result) {
data.svg = svg;
if (result.error) callback(result);
if (data.png) convert(result, data, callback);
});
Expand Down

0 comments on commit 7745f6e

Please sign in to comment.