@scalar/code-highlight
Advanced tools
Comparing version
# @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 @@ |
@@ -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
77514
0.12%839
-0.12%