@vxrn/mdx 1.1.416 → 1.1.418

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.
@@ -28757,7 +28757,7 @@ function isNode(value) {
28757
28757
  return !!(value && typeof value == "object" && "type" in value);
28758
28758
  }
28759
28759
 
28760
- // ../../node_modules/rehype-autolink-headings/node_modules/hast-util-heading-rank/lib/index.js
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/rehype-autolink-headings/node_modules/hast-util-is-element/index.js
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
- headingRank2(node) && node.properties && !hasProperty(node, "id") && (node.properties.id = prefix + slugs.slug(toString(node)));
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/hastscript/node_modules/hast-util-parse-selector/lib/index.js
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/hast-util-to-html/node_modules/html-void-elements/index.js
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/rehype-parse/node_modules/vfile-location/lib/index.js
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/rehype-parse/node_modules/hast-util-from-parse5/lib/index.js
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;