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

rehype-katex

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rehype-katex - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

8

index.js

@@ -16,4 +16,4 @@ const visit = require('unist-util-visit')

function rehypeKatex(options) {
const opts = options || {}
const throwOnError = opts.throwOnError || false
const settings = options || {}
const throwOnError = settings.throwOnError || false

@@ -41,3 +41,3 @@ return transformMath

value,
assign({}, options, {displayMode: displayMode, throwOnError: true})
assign({}, settings, {displayMode: displayMode, throwOnError: true})
)

@@ -52,3 +52,3 @@ } catch (error) {

value,
assign({}, options, {
assign({}, settings, {
displayMode: displayMode,

@@ -55,0 +55,0 @@ throwOnError: false,

{
"name": "rehype-katex",
"version": "2.0.0",
"version": "3.0.0",
"description": "rehype plugin to transform inline and block math with KaTeX",

@@ -10,2 +10,3 @@ "license": "MIT",

"rehype",
"rehype-plugin",
"plugin",

@@ -23,2 +24,6 @@ "mdast",

"bugs": "https://github.com/remarkjs/remark-math/issues",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
},
"author": "Junyoung Choi <fluke8259@gmail.com> (https://rokt33r.github.io)",

@@ -34,3 +39,3 @@ "contributors": [

"dependencies": {
"hast-util-to-text": "^1.0.0",
"hast-util-to-text": "^2.0.0",
"katex": "^0.11.0",

@@ -37,0 +42,0 @@ "rehype-parse": "^6.0.0",

@@ -101,4 +101,4 @@ # rehype-katex

This project has a [Code of Conduct][coc].
By interacting with this repository, organisation, or community you agree to
This project has a [code of conduct][coc].
By interacting with this repository, organization, or community you agree to
abide by its terms.

@@ -134,3 +134,3 @@

[chat-badge]: https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg
[chat-badge]: https://img.shields.io/badge/chat-spectrum-7b16ff.svg

@@ -137,0 +137,0 @@ [chat]: https://spectrum.chat/unified/remark

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