mathjax / MathJax-node

MathJax for Node
Apache License 2.0
615 stars 97 forks source link

revisit passing data along to callback #303

Closed pkra closed 7 years ago

pkra commented 7 years ago

While #239 was resolved, the original goal (to pass potentially unrelated data along) was not achieved.

The relevant code is https://github.com/mathjax/MathJax-node/blob/master/lib/main.js#L832-L835. The main problem seems to be that the input object is not actually passed to the callback but rather an intermediary object is built, based on the defaults (with values from the input data).