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

expressive-code

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expressive-code - npm Package Compare versions

Comparing version 0.29.4 to 0.30.0

4

dist/index.d.ts

@@ -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

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