Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mathjax-node

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mathjax-node - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0-beta.0

test/base-typeset-promise.js

19

lib/main.js

@@ -198,2 +198,6 @@ /*********************************************************************

});
MathJax.Hub.Register.MessageHook("CommonHTML Jax - unknown char",function (message) {
AddError("CHTML - Unknown character: U+"+message[1].toString(16).toUpperCase()+
" in "+(message[2].fonts||["unknown"]).join(","),!undefinedChar);
});
MathJax.Hub.Register.MessageHook("MathML Jax - unknown node type",function (message) {

@@ -829,3 +833,5 @@ AddError("MathML - Unknown node type: "+message[1]);

//
exports.typeset = function (data,callback) {
// callback API for compatibility with MathJax
var cbTypeset = function (data, callback) {
if (!callback || typeof(callback) !== "function") {

@@ -846,2 +852,13 @@ if (displayErrors) console.error("Missing callback");

// main API, callback and promise compatible
exports.typeset = function (data, callback) {
if (callback) cbTypeset(data, callback);
else return new Promise(function (resolve, reject) {
cbTypeset(data, function (output, input) {
if (output.errors) reject(output.errors);
else resolve(output, input);
});
});
};
//

@@ -848,0 +865,0 @@ // Manually start MathJax (this is done automatically

2

package.json
{
"name": "mathjax-node",
"version": "1.1.1",
"version": "1.2.0-beta.0",
"description": "API's for calling MathJax from node.js",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc