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

transformime-jupyter-transformers

Package Overview
Dependencies
Maintainers
6
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

transformime-jupyter-transformers - npm Package Compare versions

Comparing version 0.6.0 to 1.0.0

5

lib/latex.transform.js

@@ -10,5 +10,4 @@ "use strict";

function LaTeXTransform(mimetype, value, document) {
var container = document.createElement('script');
container.type = 'math/tex';
container.innerHTML = value.replace('<br>', '');
var container = document.createElement('div');
container.innerHTML = value;

@@ -15,0 +14,0 @@ mathjaxHelper.loadMathJax(document);

4

package.json
{
"name": "transformime-jupyter-transformers",
"version": "0.6.0",
"version": "1.0.0",
"description": "Bundled transformers used for Jupyter specific output",

@@ -49,4 +49,4 @@ "main": "lib/index.js",

"transformime-commonmark": "^0.1.0",
"mathjax-electron": "^0.1.0"
"mathjax-electron": "^0.2.0"
}
}

@@ -6,5 +6,4 @@ "use strict";

export function LaTeXTransform(mimetype, value, document) {
var container = document.createElement('script');
container.type = 'math/tex';
container.innerHTML = value.replace('<br>', '');
var container = document.createElement('div');
container.innerHTML = value;

@@ -11,0 +10,0 @@ mathjaxHelper.loadMathJax(document);

@@ -22,5 +22,5 @@ import {assert} from 'chai';

it('should output the correct MathJax script', function() {
let latex = '\sum\limits_{i=0}^{\infty} \frac{1}{n^2}';
let mathJaxScript = '<script type="math/tex">\sum\limits_{i=0}^{\infty} \frac{1}{n^2}</script>';
it('should output the correct HTML', function() {
let latex = '$$\\sum\\limits_{i=0}^{\\infty} \\frac{1}{n^2}$$';
let mathJaxScript = '<div>$$\\sum\\limits_{i=0}^{\\infty} \\frac{1}{n^2}$$</div>';
let transformed = this.t.transform(

@@ -27,0 +27,0 @@ {'text/latex': latex},

Sorry, the diff of this file is too big to display

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