gatsby-remark-katex
Advanced tools
Comparing version 1.0.13-0 to 1.0.13
20
index.js
@@ -1,7 +0,11 @@ | ||
const visit = require(`unist-util-visit`); | ||
const katex = require(`katex`); | ||
const remarkMath = require(`remark-math`); | ||
"use strict"; | ||
module.exports = ({ markdownAST }) => { | ||
visit(markdownAST, `inlineMath`, node => { | ||
var visit = require(`unist-util-visit`); | ||
var katex = require(`katex`); | ||
var remarkMath = require(`remark-math`); | ||
module.exports = function (_ref) { | ||
var markdownAST = _ref.markdownAST; | ||
visit(markdownAST, `inlineMath`, function (node) { | ||
node.type = `html`; | ||
@@ -13,3 +17,3 @@ node.value = katex.renderToString(node.value, { | ||
visit(markdownAST, `math`, node => { | ||
visit(markdownAST, `math`, function (node) { | ||
node.type = `html`; | ||
@@ -22,2 +26,4 @@ node.value = katex.renderToString(node.value, { | ||
module.exports.setParserPlugins = () => [remarkMath]; | ||
module.exports.setParserPlugins = function () { | ||
return [remarkMath]; | ||
}; |
{ | ||
"name": "gatsby-remark-katex", | ||
"description": "Transform math nodes to html markup", | ||
"version": "1.0.13-0", | ||
"version": "1.0.13", | ||
"author": "Jeffrey Xiao <jeffrey.xiao1998@gmail.com>", | ||
@@ -10,3 +10,3 @@ "bugs": { | ||
"dependencies": { | ||
"@babel/runtime": "^7.0.0-beta.38", | ||
"babel-runtime": "^6.26.0", | ||
"katex": "^0.8.3", | ||
@@ -28,6 +28,3 @@ "remark-math": "^1.0.3", | ||
"main": "index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/gatsbyjs/gatsby.git" | ||
}, | ||
"repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-katex", | ||
"scripts": { | ||
@@ -34,0 +31,0 @@ "build": "babel src --out-dir . --ignore __tests__", |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the 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
14443
73
0
9
+ Addedbabel-runtime@^6.26.0
+ Addedbabel-runtime@6.26.0(transitive)
+ Addedcore-js@2.6.12(transitive)
+ Addedregenerator-runtime@0.11.1(transitive)
- Removed@babel/runtime@^7.0.0-beta.38
- Removed@babel/runtime@7.26.0(transitive)
- Removedregenerator-runtime@0.14.1(transitive)