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

gatsby-remark-katex

Package Overview
Dependencies
Maintainers
1
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.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",

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