rehype-katex
Advanced tools
Comparing version 6.0.0 to 6.0.1
@@ -42,3 +42,3 @@ /** | ||
const value = toText(element) | ||
const value = toText(element, {whitespace: 'pre'}) | ||
@@ -45,0 +45,0 @@ /** @type {string} */ |
{ | ||
"name": "rehype-katex", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "rehype plugin to transform inline and block math with KaTeX", | ||
@@ -43,3 +43,3 @@ "license": "MIT", | ||
"@types/katex": "^0.11.0", | ||
"hast-util-to-text": "^3.0.0", | ||
"hast-util-to-text": "^3.1.0", | ||
"katex": "^0.13.0", | ||
@@ -46,0 +46,0 @@ "rehype-parse": "^8.0.0", |
@@ -47,2 +47,3 @@ # rehype-katex | ||
import rehypeKatex from 'rehype-katex' | ||
import rehypeDocument from 'rehype-document' | ||
import rehypeStringify from 'rehype-stringify' | ||
@@ -55,2 +56,5 @@ | ||
.use(rehypeKatex) | ||
.use(rehypeDocument, { | ||
css: 'https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.css' | ||
}) | ||
.use(rehypeStringify) | ||
@@ -57,0 +61,0 @@ .process(file) |
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
12704
171
Updatedhast-util-to-text@^3.1.0