@scalar/code-highlight 0.4.10 → 0.4.11
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 +12 -0
- package/dist/chunks/code.js +1 -1
- package/dist/chunks/code.js.map +1 -1
- package/dist/chunks/languages.js +11996 -11869
- package/dist/chunks/languages.js.map +1 -1
- package/dist/chunks/lib.js.map +1 -1
- package/dist/chunks/markdown.js +76 -59
- package/dist/chunks/markdown.js.map +1 -1
- package/dist/chunks/rehype-highlight.js +9 -8
- package/dist/chunks/rehype-highlight.js.map +1 -1
- package/dist/chunks/shared-lowlight.js +135 -163
- package/dist/chunks/shared-lowlight.js.map +1 -1
- package/dist/code/index.js +1 -2
- package/dist/css/code.css +12 -1
- package/dist/index.js +1 -1
- package/dist/languages/index.js +1 -2
- package/dist/markdown/index.js +1 -2
- package/dist/rehype-alert/index.js +1 -2
- package/dist/rehype-highlight/index.js +1 -2
- package/package.json +5 -5
|
@@ -6,7 +6,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
9
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
|
|
10
10
|
var __exportAll = (all, no_symbols) => {
|
|
11
11
|
let target = {};
|
|
12
12
|
for (var name in all) __defProp(target, name, {
|
|
@@ -26,7 +26,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
26
26
|
}
|
|
27
27
|
return to;
|
|
28
28
|
};
|
|
29
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
29
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
30
30
|
value: mod,
|
|
31
31
|
enumerable: true
|
|
32
32
|
}) : target, mod));
|
|
@@ -676,7 +676,6 @@ function inferWhitespace(node, info) {
|
|
|
676
676
|
case "td":
|
|
677
677
|
case "th": return properties.noWrap ? "nowrap" : info.whitespace;
|
|
678
678
|
case "textarea": return "pre-wrap";
|
|
679
|
-
default:
|
|
680
679
|
}
|
|
681
680
|
}
|
|
682
681
|
return info.whitespace;
|
|
@@ -1618,11 +1617,13 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exp
|
|
|
1618
1617
|
const m = this.getMatcher(this.regexIndex);
|
|
1619
1618
|
m.lastIndex = this.lastIndex;
|
|
1620
1619
|
let result = m.exec(s);
|
|
1621
|
-
if (this.resumingScanAtSamePosition())
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1620
|
+
if (this.resumingScanAtSamePosition()) {
|
|
1621
|
+
if (result && result.index === this.lastIndex);
|
|
1622
|
+
else {
|
|
1623
|
+
const m2 = this.getMatcher(0);
|
|
1624
|
+
m2.lastIndex = this.lastIndex + 1;
|
|
1625
|
+
result = m2.exec(s);
|
|
1626
|
+
}
|
|
1626
1627
|
}
|
|
1627
1628
|
if (result) {
|
|
1628
1629
|
this.regexIndex += result.position + 1;
|