transformime-jupyter-transformers
Advanced tools
Comparing version 0.6.0 to 1.0.0
@@ -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); |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4133
1
0
213760
+ Addedmathjax-electron@0.2.0(transitive)
- Removedmathjax-electron@0.1.0(transitive)
Updatedmathjax-electron@^0.2.0