@vxrn/mdx 1.1.415 → 1.1.417
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/dist/index.js +51 -57
- package/dist/index.js.map +3 -3
- package/dist/index.native.js +51 -67
- package/dist/index.native.js.map +3 -3
- package/package.json +2 -2
package/dist/index.native.js
CHANGED
|
@@ -4021,9 +4021,9 @@ var require_unist_util_visit = __commonJS({
|
|
|
4021
4021
|
}
|
|
4022
4022
|
});
|
|
4023
4023
|
|
|
4024
|
-
// ../../node_modules/
|
|
4024
|
+
// ../../node_modules/parse5/lib/common/unicode.js
|
|
4025
4025
|
var require_unicode = __commonJS({
|
|
4026
|
-
"../../node_modules/
|
|
4026
|
+
"../../node_modules/parse5/lib/common/unicode.js"(exports2) {
|
|
4027
4027
|
"use strict";
|
|
4028
4028
|
var UNDEFINED_CODE_POINTS = [
|
|
4029
4029
|
65534,
|
|
@@ -4167,9 +4167,9 @@ var require_unicode = __commonJS({
|
|
|
4167
4167
|
}
|
|
4168
4168
|
});
|
|
4169
4169
|
|
|
4170
|
-
// ../../node_modules/
|
|
4170
|
+
// ../../node_modules/parse5/lib/common/error-codes.js
|
|
4171
4171
|
var require_error_codes = __commonJS({
|
|
4172
|
-
"../../node_modules/
|
|
4172
|
+
"../../node_modules/parse5/lib/common/error-codes.js"(exports2, module2) {
|
|
4173
4173
|
"use strict";
|
|
4174
4174
|
module2.exports = {
|
|
4175
4175
|
controlCharacterInInputStream: "control-character-in-input-stream",
|
|
@@ -4236,9 +4236,9 @@ var require_error_codes = __commonJS({
|
|
|
4236
4236
|
}
|
|
4237
4237
|
});
|
|
4238
4238
|
|
|
4239
|
-
// ../../node_modules/
|
|
4239
|
+
// ../../node_modules/parse5/lib/tokenizer/preprocessor.js
|
|
4240
4240
|
var require_preprocessor = __commonJS({
|
|
4241
|
-
"../../node_modules/
|
|
4241
|
+
"../../node_modules/parse5/lib/tokenizer/preprocessor.js"(exports2, module2) {
|
|
4242
4242
|
"use strict";
|
|
4243
4243
|
function _class_call_check7(instance, Constructor) {
|
|
4244
4244
|
if (!(instance instanceof Constructor))
|
|
@@ -4333,9 +4333,9 @@ var require_preprocessor = __commonJS({
|
|
|
4333
4333
|
}
|
|
4334
4334
|
});
|
|
4335
4335
|
|
|
4336
|
-
// ../../node_modules/
|
|
4336
|
+
// ../../node_modules/parse5/lib/tokenizer/named-entity-data.js
|
|
4337
4337
|
var require_named_entity_data = __commonJS({
|
|
4338
|
-
"../../node_modules/
|
|
4338
|
+
"../../node_modules/parse5/lib/tokenizer/named-entity-data.js"(exports2, module2) {
|
|
4339
4339
|
"use strict";
|
|
4340
4340
|
module2.exports = new Uint16Array([
|
|
4341
4341
|
4,
|
|
@@ -23847,9 +23847,9 @@ var require_named_entity_data = __commonJS({
|
|
|
23847
23847
|
}
|
|
23848
23848
|
});
|
|
23849
23849
|
|
|
23850
|
-
// ../../node_modules/
|
|
23850
|
+
// ../../node_modules/parse5/lib/tokenizer/index.js
|
|
23851
23851
|
var require_tokenizer = __commonJS({
|
|
23852
|
-
"../../node_modules/
|
|
23852
|
+
"../../node_modules/parse5/lib/tokenizer/index.js"(exports2, module2) {
|
|
23853
23853
|
"use strict";
|
|
23854
23854
|
function _class_call_check7(instance, Constructor) {
|
|
23855
23855
|
if (!(instance instanceof Constructor))
|
|
@@ -25012,9 +25012,9 @@ var require_tokenizer = __commonJS({
|
|
|
25012
25012
|
}
|
|
25013
25013
|
});
|
|
25014
25014
|
|
|
25015
|
-
// ../../node_modules/
|
|
25015
|
+
// ../../node_modules/parse5/lib/common/html.js
|
|
25016
25016
|
var require_html = __commonJS({
|
|
25017
|
-
"../../node_modules/
|
|
25017
|
+
"../../node_modules/parse5/lib/common/html.js"(exports2) {
|
|
25018
25018
|
"use strict";
|
|
25019
25019
|
var NS = exports2.NAMESPACES = {
|
|
25020
25020
|
HTML: "http://www.w3.org/1999/xhtml",
|
|
@@ -25264,9 +25264,9 @@ var require_html = __commonJS({
|
|
|
25264
25264
|
}
|
|
25265
25265
|
});
|
|
25266
25266
|
|
|
25267
|
-
// ../../node_modules/
|
|
25267
|
+
// ../../node_modules/parse5/lib/parser/open-element-stack.js
|
|
25268
25268
|
var require_open_element_stack = __commonJS({
|
|
25269
|
-
"../../node_modules/
|
|
25269
|
+
"../../node_modules/parse5/lib/parser/open-element-stack.js"(exports2, module2) {
|
|
25270
25270
|
"use strict";
|
|
25271
25271
|
function _class_call_check7(instance, Constructor) {
|
|
25272
25272
|
if (!(instance instanceof Constructor))
|
|
@@ -25638,9 +25638,9 @@ var require_open_element_stack = __commonJS({
|
|
|
25638
25638
|
}
|
|
25639
25639
|
});
|
|
25640
25640
|
|
|
25641
|
-
// ../../node_modules/
|
|
25641
|
+
// ../../node_modules/parse5/lib/parser/formatting-element-list.js
|
|
25642
25642
|
var require_formatting_element_list = __commonJS({
|
|
25643
|
-
"../../node_modules/
|
|
25643
|
+
"../../node_modules/parse5/lib/parser/formatting-element-list.js"(exports2, module2) {
|
|
25644
25644
|
"use strict";
|
|
25645
25645
|
function _class_call_check7(instance, Constructor) {
|
|
25646
25646
|
if (!(instance instanceof Constructor))
|
|
@@ -25785,9 +25785,9 @@ var require_formatting_element_list = __commonJS({
|
|
|
25785
25785
|
}
|
|
25786
25786
|
});
|
|
25787
25787
|
|
|
25788
|
-
// ../../node_modules/
|
|
25788
|
+
// ../../node_modules/parse5/lib/utils/mixin.js
|
|
25789
25789
|
var require_mixin = __commonJS({
|
|
25790
|
-
"../../node_modules/
|
|
25790
|
+
"../../node_modules/parse5/lib/utils/mixin.js"(exports2, module2) {
|
|
25791
25791
|
"use strict";
|
|
25792
25792
|
function _class_call_check7(instance, Constructor) {
|
|
25793
25793
|
if (!(instance instanceof Constructor))
|
|
@@ -25843,9 +25843,9 @@ var require_mixin = __commonJS({
|
|
|
25843
25843
|
}
|
|
25844
25844
|
});
|
|
25845
25845
|
|
|
25846
|
-
// ../../node_modules/
|
|
25846
|
+
// ../../node_modules/parse5/lib/extensions/position-tracking/preprocessor-mixin.js
|
|
25847
25847
|
var require_preprocessor_mixin = __commonJS({
|
|
25848
|
-
"../../node_modules/
|
|
25848
|
+
"../../node_modules/parse5/lib/extensions/position-tracking/preprocessor-mixin.js"(exports2, module2) {
|
|
25849
25849
|
"use strict";
|
|
25850
25850
|
function _assert_this_initialized3(self) {
|
|
25851
25851
|
if (self === void 0)
|
|
@@ -25944,9 +25944,9 @@ var require_preprocessor_mixin = __commonJS({
|
|
|
25944
25944
|
}
|
|
25945
25945
|
});
|
|
25946
25946
|
|
|
25947
|
-
// ../../node_modules/
|
|
25947
|
+
// ../../node_modules/parse5/lib/extensions/location-info/tokenizer-mixin.js
|
|
25948
25948
|
var require_tokenizer_mixin = __commonJS({
|
|
25949
|
-
"../../node_modules/
|
|
25949
|
+
"../../node_modules/parse5/lib/extensions/location-info/tokenizer-mixin.js"(exports2, module2) {
|
|
25950
25950
|
"use strict";
|
|
25951
25951
|
function _assert_this_initialized3(self) {
|
|
25952
25952
|
if (self === void 0)
|
|
@@ -26092,9 +26092,9 @@ var require_tokenizer_mixin = __commonJS({
|
|
|
26092
26092
|
}
|
|
26093
26093
|
});
|
|
26094
26094
|
|
|
26095
|
-
// ../../node_modules/
|
|
26095
|
+
// ../../node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js
|
|
26096
26096
|
var require_open_element_stack_mixin = __commonJS({
|
|
26097
|
-
"../../node_modules/
|
|
26097
|
+
"../../node_modules/parse5/lib/extensions/location-info/open-element-stack-mixin.js"(exports2, module2) {
|
|
26098
26098
|
"use strict";
|
|
26099
26099
|
function _assert_this_initialized3(self) {
|
|
26100
26100
|
if (self === void 0)
|
|
@@ -26189,9 +26189,9 @@ var require_open_element_stack_mixin = __commonJS({
|
|
|
26189
26189
|
}
|
|
26190
26190
|
});
|
|
26191
26191
|
|
|
26192
|
-
// ../../node_modules/
|
|
26192
|
+
// ../../node_modules/parse5/lib/extensions/location-info/parser-mixin.js
|
|
26193
26193
|
var require_parser_mixin = __commonJS({
|
|
26194
|
-
"../../node_modules/
|
|
26194
|
+
"../../node_modules/parse5/lib/extensions/location-info/parser-mixin.js"(exports2, module2) {
|
|
26195
26195
|
"use strict";
|
|
26196
26196
|
function _assert_this_initialized3(self) {
|
|
26197
26197
|
if (self === void 0)
|
|
@@ -26374,9 +26374,9 @@ var require_parser_mixin = __commonJS({
|
|
|
26374
26374
|
}
|
|
26375
26375
|
});
|
|
26376
26376
|
|
|
26377
|
-
// ../../node_modules/
|
|
26377
|
+
// ../../node_modules/parse5/lib/extensions/error-reporting/mixin-base.js
|
|
26378
26378
|
var require_mixin_base = __commonJS({
|
|
26379
|
-
"../../node_modules/
|
|
26379
|
+
"../../node_modules/parse5/lib/extensions/error-reporting/mixin-base.js"(exports2, module2) {
|
|
26380
26380
|
"use strict";
|
|
26381
26381
|
function _assert_this_initialized3(self) {
|
|
26382
26382
|
if (self === void 0)
|
|
@@ -26484,9 +26484,9 @@ var require_mixin_base = __commonJS({
|
|
|
26484
26484
|
}
|
|
26485
26485
|
});
|
|
26486
26486
|
|
|
26487
|
-
// ../../node_modules/
|
|
26487
|
+
// ../../node_modules/parse5/lib/extensions/error-reporting/preprocessor-mixin.js
|
|
26488
26488
|
var require_preprocessor_mixin2 = __commonJS({
|
|
26489
|
-
"../../node_modules/
|
|
26489
|
+
"../../node_modules/parse5/lib/extensions/error-reporting/preprocessor-mixin.js"(exports2, module2) {
|
|
26490
26490
|
"use strict";
|
|
26491
26491
|
function _assert_this_initialized3(self) {
|
|
26492
26492
|
if (self === void 0)
|
|
@@ -26584,9 +26584,9 @@ var require_preprocessor_mixin2 = __commonJS({
|
|
|
26584
26584
|
}
|
|
26585
26585
|
});
|
|
26586
26586
|
|
|
26587
|
-
// ../../node_modules/
|
|
26587
|
+
// ../../node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js
|
|
26588
26588
|
var require_tokenizer_mixin2 = __commonJS({
|
|
26589
|
-
"../../node_modules/
|
|
26589
|
+
"../../node_modules/parse5/lib/extensions/error-reporting/tokenizer-mixin.js"(exports2, module2) {
|
|
26590
26590
|
"use strict";
|
|
26591
26591
|
function _assert_this_initialized3(self) {
|
|
26592
26592
|
if (self === void 0)
|
|
@@ -26656,9 +26656,9 @@ var require_tokenizer_mixin2 = __commonJS({
|
|
|
26656
26656
|
}
|
|
26657
26657
|
});
|
|
26658
26658
|
|
|
26659
|
-
// ../../node_modules/
|
|
26659
|
+
// ../../node_modules/parse5/lib/extensions/error-reporting/parser-mixin.js
|
|
26660
26660
|
var require_parser_mixin2 = __commonJS({
|
|
26661
|
-
"../../node_modules/
|
|
26661
|
+
"../../node_modules/parse5/lib/extensions/error-reporting/parser-mixin.js"(exports2, module2) {
|
|
26662
26662
|
"use strict";
|
|
26663
26663
|
function _assert_this_initialized3(self) {
|
|
26664
26664
|
if (self === void 0)
|
|
@@ -26758,9 +26758,9 @@ var require_parser_mixin2 = __commonJS({
|
|
|
26758
26758
|
}
|
|
26759
26759
|
});
|
|
26760
26760
|
|
|
26761
|
-
// ../../node_modules/
|
|
26761
|
+
// ../../node_modules/parse5/lib/tree-adapters/default.js
|
|
26762
26762
|
var require_default = __commonJS({
|
|
26763
|
-
"../../node_modules/
|
|
26763
|
+
"../../node_modules/parse5/lib/tree-adapters/default.js"(exports2) {
|
|
26764
26764
|
"use strict";
|
|
26765
26765
|
var { DOCUMENT_MODE } = require_html();
|
|
26766
26766
|
exports2.createDocument = function() {
|
|
@@ -26913,9 +26913,9 @@ var require_default = __commonJS({
|
|
|
26913
26913
|
}
|
|
26914
26914
|
});
|
|
26915
26915
|
|
|
26916
|
-
// ../../node_modules/
|
|
26916
|
+
// ../../node_modules/parse5/lib/utils/merge-options.js
|
|
26917
26917
|
var require_merge_options = __commonJS({
|
|
26918
|
-
"../../node_modules/
|
|
26918
|
+
"../../node_modules/parse5/lib/utils/merge-options.js"(exports2, module2) {
|
|
26919
26919
|
"use strict";
|
|
26920
26920
|
module2.exports = function(defaults, options2) {
|
|
26921
26921
|
return options2 = options2 || /* @__PURE__ */ Object.create(null), [
|
|
@@ -26930,9 +26930,9 @@ var require_merge_options = __commonJS({
|
|
|
26930
26930
|
}
|
|
26931
26931
|
});
|
|
26932
26932
|
|
|
26933
|
-
// ../../node_modules/
|
|
26933
|
+
// ../../node_modules/parse5/lib/common/doctype.js
|
|
26934
26934
|
var require_doctype = __commonJS({
|
|
26935
|
-
"../../node_modules/
|
|
26935
|
+
"../../node_modules/parse5/lib/common/doctype.js"(exports2) {
|
|
26936
26936
|
"use strict";
|
|
26937
26937
|
var { DOCUMENT_MODE } = require_html(), VALID_DOCTYPE_NAME = "html", VALID_SYSTEM_ID = "about:legacy-compat", QUIRKS_MODE_SYSTEM_ID = "http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd", QUIRKS_MODE_PUBLIC_ID_PREFIXES = [
|
|
26938
26938
|
"+//silmaril//dtd html pro v0r11 19970101//",
|
|
@@ -27042,9 +27042,9 @@ var require_doctype = __commonJS({
|
|
|
27042
27042
|
}
|
|
27043
27043
|
});
|
|
27044
27044
|
|
|
27045
|
-
// ../../node_modules/
|
|
27045
|
+
// ../../node_modules/parse5/lib/common/foreign-content.js
|
|
27046
27046
|
var require_foreign_content = __commonJS({
|
|
27047
|
-
"../../node_modules/
|
|
27047
|
+
"../../node_modules/parse5/lib/common/foreign-content.js"(exports2) {
|
|
27048
27048
|
"use strict";
|
|
27049
27049
|
var Tokenizer = require_tokenizer(), HTML = require_html(), $ = HTML.TAG_NAMES, NS = HTML.NAMESPACES, ATTRS = HTML.ATTRS, MIME_TYPES = {
|
|
27050
27050
|
TEXT_HTML: "text/html",
|
|
@@ -27298,9 +27298,9 @@ var require_foreign_content = __commonJS({
|
|
|
27298
27298
|
}
|
|
27299
27299
|
});
|
|
27300
27300
|
|
|
27301
|
-
// ../../node_modules/
|
|
27301
|
+
// ../../node_modules/parse5/lib/parser/index.js
|
|
27302
27302
|
var require_parser = __commonJS({
|
|
27303
|
-
"../../node_modules/
|
|
27303
|
+
"../../node_modules/parse5/lib/parser/index.js"(exports2, module2) {
|
|
27304
27304
|
"use strict";
|
|
27305
27305
|
function _class_call_check7(instance, Constructor) {
|
|
27306
27306
|
if (!(instance instanceof Constructor))
|
|
@@ -28757,7 +28757,7 @@ function isNode(value) {
|
|
|
28757
28757
|
return !!(value && typeof value == "object" && "type" in value);
|
|
28758
28758
|
}
|
|
28759
28759
|
|
|
28760
|
-
// ../../node_modules/
|
|
28760
|
+
// ../../node_modules/hast-util-heading-rank/lib/index.js
|
|
28761
28761
|
function headingRank(node) {
|
|
28762
28762
|
var name = node && node.type === "element" && node.tagName.toLowerCase() || "", code = name.length === 2 && name.charCodeAt(0) === 104 ? (
|
|
28763
28763
|
/* `h` */
|
|
@@ -28773,7 +28773,7 @@ function headingRank(node) {
|
|
|
28773
28773
|
);
|
|
28774
28774
|
}
|
|
28775
28775
|
|
|
28776
|
-
// ../../node_modules/
|
|
28776
|
+
// ../../node_modules/hast-util-is-element/index.js
|
|
28777
28777
|
var convertElement = (
|
|
28778
28778
|
/**
|
|
28779
28779
|
* @type {(
|
|
@@ -29121,22 +29121,6 @@ function slug(value, maintainCase) {
|
|
|
29121
29121
|
return typeof value != "string" ? "" : (maintainCase || (value = value.toLowerCase()), value.replace(regex, "").replace(/ /g, "-"));
|
|
29122
29122
|
}
|
|
29123
29123
|
|
|
29124
|
-
// ../../node_modules/rehype-slug/node_modules/hast-util-heading-rank/lib/index.js
|
|
29125
|
-
function headingRank2(node) {
|
|
29126
|
-
var name = node && node.type === "element" && node.tagName.toLowerCase() || "", code = name.length === 2 && name.charCodeAt(0) === 104 ? (
|
|
29127
|
-
/* `h` */
|
|
29128
|
-
name.charCodeAt(1)
|
|
29129
|
-
) : 0;
|
|
29130
|
-
return code > 48 && /* `0` */
|
|
29131
|
-
code < 55 ? (
|
|
29132
|
-
/* `7` */
|
|
29133
|
-
code - 48
|
|
29134
|
-
) : (
|
|
29135
|
-
/* `0` */
|
|
29136
|
-
null
|
|
29137
|
-
);
|
|
29138
|
-
}
|
|
29139
|
-
|
|
29140
29124
|
// ../../node_modules/hast-util-to-string/index.js
|
|
29141
29125
|
function toString(node) {
|
|
29142
29126
|
return "children" in node ? all(node) : "value" in node ? node.value : "";
|
|
@@ -29306,7 +29290,7 @@ function rehypeSlug() {
|
|
|
29306
29290
|
var options2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, prefix = options2.prefix || "";
|
|
29307
29291
|
return function(tree) {
|
|
29308
29292
|
slugs.reset(), visit3(tree, "element", function(node) {
|
|
29309
|
-
|
|
29293
|
+
headingRank(node) && node.properties && !hasProperty(node, "id") && (node.properties.id = prefix + slugs.slug(toString(node)));
|
|
29310
29294
|
});
|
|
29311
29295
|
};
|
|
29312
29296
|
}
|
|
@@ -34087,7 +34071,7 @@ var html2 = merge([
|
|
|
34087
34071
|
svg
|
|
34088
34072
|
], "svg");
|
|
34089
34073
|
|
|
34090
|
-
// ../../node_modules/
|
|
34074
|
+
// ../../node_modules/hast-util-parse-selector/lib/index.js
|
|
34091
34075
|
var search = /[#.]/g;
|
|
34092
34076
|
function parseSelector(selector, defaultTagName) {
|
|
34093
34077
|
for (var value = selector || "", props = {}, start = 0, previous, tagName; start < value.length; ) {
|
|
@@ -37379,7 +37363,7 @@ function tsx(Prism2) {
|
|
|
37379
37363
|
// src/rehypeHighlightCode.tsx
|
|
37380
37364
|
var import_unist_util_visit3 = __toESM(require_unist_util_visit());
|
|
37381
37365
|
|
|
37382
|
-
// ../../node_modules/
|
|
37366
|
+
// ../../node_modules/html-void-elements/index.js
|
|
37383
37367
|
var htmlVoidElements = [
|
|
37384
37368
|
"area",
|
|
37385
37369
|
"base",
|
|
@@ -38137,7 +38121,7 @@ function all2(parent) {
|
|
|
38137
38121
|
// ../../node_modules/rehype-parse/lib/index.js
|
|
38138
38122
|
var import_parser = __toESM(require_parser(), 1);
|
|
38139
38123
|
|
|
38140
|
-
// ../../node_modules/
|
|
38124
|
+
// ../../node_modules/vfile-location/lib/index.js
|
|
38141
38125
|
function location(file) {
|
|
38142
38126
|
for (var value = String(file), indices = [], search2 = /\r?\n|\r/g; search2.test(value); )
|
|
38143
38127
|
indices.push(search2.lastIndex);
|
|
@@ -38183,7 +38167,7 @@ var webNamespaces = {
|
|
|
38183
38167
|
xmlns: "http://www.w3.org/2000/xmlns/"
|
|
38184
38168
|
};
|
|
38185
38169
|
|
|
38186
|
-
// ../../node_modules/
|
|
38170
|
+
// ../../node_modules/hast-util-from-parse5/lib/index.js
|
|
38187
38171
|
var own10 = {}.hasOwnProperty, proto = Object.prototype;
|
|
38188
38172
|
function fromParse5(tree, options2) {
|
|
38189
38173
|
var options_ = options2 || {}, settings, file;
|