You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@scalar/code-highlight

Package Overview
Dependencies
Maintainers
10
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scalar/code-highlight - npm Package Compare versions

Comparing version

to
0.1.9

6

CHANGELOG.md
# @scalar/code-highlight
## 0.1.9
### Patch Changes
- d4cb86b: fix: removes inline block display to keep caret in empty code input usage
## 0.1.8

@@ -4,0 +10,0 @@

4

dist/rehype-alert/rehype-alert.js

@@ -49,3 +49,3 @@ import { visit } from "unist-util-visit";

const nextIndex = skipped ? headIndex + 2 : headIndex + 1;
if (nextIndex >= node.children.length || node.children[nextIndex].type !== "element") {
if (nextIndex >= node.children.length || node.children[nextIndex]?.type !== "element") {
return;

@@ -64,3 +64,3 @@ }

const child = node.children[i];
if (child.type === "element" && child.tagName === "p" && child.children) {
if (child?.type === "element" && child.tagName === "p" && child.children) {
contentChildren.push(...child.children);

@@ -67,0 +67,0 @@ } else {

@@ -19,3 +19,3 @@ {

],
"version": "0.1.8",
"version": "0.1.9",
"engines": {

@@ -99,6 +99,6 @@ "node": ">=20"

"vfile": "^6.0.1",
"vite": "5.4.19",
"vite": "6.1.6",
"vue": "^3.5.17",
"@scalar/build-tooling": "0.2.4",
"@scalar/themes": "0.13.10"
"@scalar/themes": "0.13.12"
},

@@ -105,0 +105,0 @@ "scripts": {

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.