rehype-katex
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -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 |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
10788
0
+ Addedhast-util-to-text@2.0.1(transitive)
+ Addedunist-util-find-after@3.0.0(transitive)
- Removedhast-util-to-text@1.0.1(transitive)
- Removedunist-util-find-after@2.0.4(transitive)
- Removedunist-util-is@3.0.0(transitive)
Updatedhast-util-to-text@^2.0.0