@scalar/code-highlight 0.4.8 → 0.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/markdown.js.map +1 -1
- package/dist/chunks/rehype-alert.js +2 -2
- package/dist/chunks/rehype-alert.js.map +1 -1
- package/dist/markdown/index.d.ts +1 -1
- package/dist/markdown/index.d.ts.map +1 -1
- package/dist/markdown/markdown.d.ts.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @scalar/code-highlight
|
|
2
2
|
|
|
3
|
+
## 0.4.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#10614](https://github.com/scalar/scalar/pull/10614): Clean up lint warnings while preserving runtime behavior, and document intentional schema and type syntax.
|
|
8
|
+
|
|
9
|
+
## 0.4.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#10559](https://github.com/scalar/scalar/pull/10559): Clean up Biome warnings in package code and tests. Handle rejected debounced callbacks and await streaming writes.
|
|
14
|
+
- [#10506](https://github.com/scalar/scalar/pull/10506): Organize imports consistently with the checks enforced in CI.
|
|
15
|
+
|
|
3
16
|
## 0.4.8
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/chunks/markdown.js
CHANGED
|
@@ -20801,7 +20801,7 @@ var extractInlineChildrenFromMarkdown = (value) => {
|
|
|
20801
20801
|
const tree = inlineMarkdownProcessor.runSync(inlineMarkdownProcessor.parse(value));
|
|
20802
20802
|
if (tree.children.length !== 1) return [];
|
|
20803
20803
|
const paragraph = tree.children.at(0);
|
|
20804
|
-
if (
|
|
20804
|
+
if (paragraph?.type !== "element" || paragraph.tagName !== "p") return [];
|
|
20805
20805
|
return paragraph.children;
|
|
20806
20806
|
};
|
|
20807
20807
|
/**
|