rehype-prism
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -6,2 +6,9 @@ # Change Log | ||
<a name="0.1.1"></a> | ||
### [2.1.1](https://www.github.com/Val-istar-Guo/rehype-prism/compare/v2.1.0...v2.1.1) (2022-03-21) | ||
### Bug Fixes | ||
* syntax error of esm dynamic import plugins([#14](https://www.github.com/Val-istar-Guo/rehype-prism/issues/14)) ([43166de](https://www.github.com/Val-istar-Guo/rehype-prism/commit/43166de3bf5fbf50b3b633e5a5200f9c5f7909ea)) | ||
## [2.1.0](https://www.github.com/Val-istar-Guo/rehype-prism/compare/v2.0.0...v2.1.0) (2022-03-20) | ||
@@ -8,0 +15,0 @@ |
@@ -30,3 +30,3 @@ { | ||
"description": "The unified plugin used to highlight code block in html with Prism", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"directories": { | ||
@@ -33,0 +33,0 @@ "test": "tests" |
@@ -43,3 +43,3 @@ import Prism from 'prismjs'; | ||
for (const plugin of options.plugins) { | ||
require(`prismjs/plugins/line-numbers/prism-${plugin}`); | ||
import(`prismjs/plugins/${plugin}/prism-${plugin}.js`); | ||
} | ||
@@ -46,0 +46,0 @@ } |
@@ -30,3 +30,3 @@ { | ||
"description": "The unified plugin used to highlight code block in html with Prism", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"directories": { | ||
@@ -33,0 +33,0 @@ "test": "tests" |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
17145
0