New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-remark-katex

Package Overview
Dependencies
Maintainers
2
Versions
338
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-remark-katex - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13-0

20

index.js

@@ -1,11 +0,7 @@

"use strict";
const visit = require(`unist-util-visit`);
const katex = require(`katex`);
const remarkMath = require(`remark-math`);
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) {
module.exports = ({ markdownAST }) => {
visit(markdownAST, `inlineMath`, node => {
node.type = `html`;

@@ -17,3 +13,3 @@ node.value = katex.renderToString(node.value, {

visit(markdownAST, `math`, function (node) {
visit(markdownAST, `math`, node => {
node.type = `html`;

@@ -26,4 +22,2 @@ node.value = katex.renderToString(node.value, {

module.exports.setParserPlugins = function () {
return [remarkMath];
};
module.exports.setParserPlugins = () => [remarkMath];
{
"name": "gatsby-remark-katex",
"description": "Transform math nodes to html markup",
"version": "1.0.12",
"version": "1.0.13-0",
"author": "Jeffrey Xiao <jeffrey.xiao1998@gmail.com>",

@@ -10,3 +10,3 @@ "bugs": {

"dependencies": {
"babel-runtime": "^6.26.0",
"@babel/runtime": "^7.0.0-beta.38",
"katex": "^0.8.3",

@@ -13,0 +13,0 @@ "remark-math": "^1.0.3",

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