gatsby-remark-katex
Advanced tools
Comparing version 1.0.2 to 1.0.3
14
index.js
"use strict"; | ||
var visit = require("unist-util-visit"); | ||
var katex = require("katex"); | ||
var remarkMath = require("remark-math"); | ||
var visit = require(`unist-util-visit`); | ||
var katex = require(`katex`); | ||
var remarkMath = require(`remark-math`); | ||
@@ -10,4 +10,4 @@ module.exports = function (_ref) { | ||
visit(markdownAST, "inlineMath", function (node) { | ||
node.type = "html"; | ||
visit(markdownAST, `inlineMath`, function (node) { | ||
node.type = `html`; | ||
node.value = katex.renderToString(node.value, { | ||
@@ -18,4 +18,4 @@ displayMode: false | ||
visit(markdownAST, "math", function (node) { | ||
node.type = "html"; | ||
visit(markdownAST, `math`, function (node) { | ||
node.type = `html`; | ||
node.value = katex.renderToString(node.value, { | ||
@@ -22,0 +22,0 @@ displayMode: true |
{ | ||
"name": "gatsby-remark-katex", | ||
"description": "Transform math nodes to html markup", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"author": "Jeffrey Xiao <jeffrey.xiao1998@gmail.com>", | ||
"dependencies": { | ||
"babel-runtime": "6.26.0", | ||
"katex": "^0.7.1", | ||
@@ -8,0 +9,0 @@ "remark-math": "^0.2.4", |
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
10024
4
9
+ Addedbabel-runtime@6.26.0
+ Addedbabel-runtime@6.26.0(transitive)
+ Addedcore-js@2.6.12(transitive)
+ Addedregenerator-runtime@0.11.1(transitive)