expressive-code
Advanced tools
Comparing version 0.29.4 to 0.30.0
@@ -5,2 +5,3 @@ import { ExpressiveCodeEngineConfig, ExpressiveCodeEngine } from '@expressive-code/core'; | ||
export * from '@expressive-code/plugin-frames'; | ||
import { PluginShikiOptions } from '@expressive-code/plugin-shiki'; | ||
export * from '@expressive-code/plugin-shiki'; | ||
@@ -14,4 +15,5 @@ export * from '@expressive-code/plugin-text-markers'; | ||
* This plugin is enabled by default. Set this to `false` to disable it. | ||
* You can also configure the plugin by setting this to an options object. | ||
*/ | ||
shiki?: boolean | undefined; | ||
shiki?: PluginShikiOptions | boolean | undefined; | ||
/** | ||
@@ -18,0 +20,0 @@ * The Text Markers plugin allows to highlight lines and inline ranges |
@@ -16,3 +16,3 @@ // src/index.ts | ||
if (shiki !== false && notPresentInPlugins("Shiki")) { | ||
pluginsToPrepend.push(pluginShiki()); | ||
pluginsToPrepend.push(pluginShiki(shiki !== true ? shiki : void 0)); | ||
} | ||
@@ -19,0 +19,0 @@ if (textMarkers !== false && notPresentInPlugins("TextMarkers")) { |
{ | ||
"name": "expressive-code", | ||
"version": "0.29.4", | ||
"version": "0.30.0", | ||
"description": "A text marking & annotation engine for presenting source code on the web.", | ||
@@ -26,6 +26,6 @@ "keywords": [], | ||
"dependencies": { | ||
"@expressive-code/core": "^0.29.4", | ||
"@expressive-code/plugin-frames": "^0.29.4", | ||
"@expressive-code/plugin-shiki": "^0.29.4", | ||
"@expressive-code/plugin-text-markers": "^0.29.4" | ||
"@expressive-code/core": "^0.30.0", | ||
"@expressive-code/plugin-frames": "^0.30.0", | ||
"@expressive-code/plugin-shiki": "^0.30.0", | ||
"@expressive-code/plugin-text-markers": "^0.30.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "scripts": { |
@@ -79,8 +79,10 @@ # expressive-code [![NPM version](https://img.shields.io/npm/v/expressive-code.svg)](https://www.npmjs.com/package/expressive-code) [![NPM downloads](https://img.shields.io/npm/dm/expressive-code.svg)](https://npmjs.org/package/expressive-code) | ||
- `shiki: boolean` | ||
- `shiki: PluginShikiOptions | boolean` | ||
The Shiki plugin adds syntax highlighting to code blocks. | ||
Configures the Shiki plugin, which adds syntax highlighting to code blocks. | ||
This plugin is enabled by default. Set this to `false` to disable it. | ||
You can also configure the plugin by setting this to an [options object](https://github.com/expressive-code/expressive-code/blob/main/packages/%40expressive-code/plugin-shiki/README.md#available-plugin-options). | ||
- `textMarkers: boolean` | ||
@@ -87,0 +89,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
25417
152
100
+ Added@expressive-code/core@0.30.2(transitive)
+ Added@expressive-code/plugin-frames@0.30.2(transitive)
+ Added@expressive-code/plugin-shiki@0.30.2(transitive)
+ Added@expressive-code/plugin-text-markers@0.30.2(transitive)
+ Added@types/hast@3.0.4(transitive)
+ Added@types/mdast@4.0.4(transitive)
+ Added@types/unist@3.0.3(transitive)
+ Added@ungap/structured-clone@1.2.1(transitive)
+ Addeddequal@2.0.3(transitive)
+ Addeddevlop@1.1.0(transitive)
+ Addedhast-util-to-html@9.0.4(transitive)
+ Addedhast-util-whitespace@3.0.0(transitive)
+ Addedhtml-void-elements@3.0.0(transitive)
+ Addedmdast-util-to-hast@13.2.0(transitive)
+ Addedmicromark-util-character@2.1.1(transitive)
+ Addedmicromark-util-encode@2.0.1(transitive)
+ Addedmicromark-util-sanitize-uri@2.0.1(transitive)
+ Addedmicromark-util-symbol@2.0.1(transitive)
+ Addedmicromark-util-types@2.0.1(transitive)
+ Addedshikiji@0.8.7(transitive)
+ Addedtrim-lines@3.0.1(transitive)
+ Addedunist-util-is@6.0.0(transitive)
+ Addedunist-util-position@5.0.0(transitive)
+ Addedunist-util-stringify-position@4.0.0(transitive)
+ Addedunist-util-visit@5.0.0(transitive)
+ Addedunist-util-visit-parents@6.0.1(transitive)
+ Addedvfile@6.0.3(transitive)
+ Addedvfile-message@4.0.2(transitive)
- Removed@expressive-code/core@0.29.4(transitive)
- Removed@expressive-code/plugin-frames@0.29.4(transitive)
- Removed@expressive-code/plugin-shiki@0.29.4(transitive)
- Removed@expressive-code/plugin-text-markers@0.29.4(transitive)
- Removedansi-sequence-parser@1.1.1(transitive)
- Removedjsonc-parser@3.3.1(transitive)
- Removedshiki@0.14.7(transitive)
- Removedvscode-oniguruma@1.7.0(transitive)
- Removedvscode-textmate@8.0.0(transitive)