@scalar/code-highlight 0.4.11 → 0.4.13

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @scalar/code-highlight
2
2
 
3
+ ## 0.4.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [#10923](https://github.com/scalar/scalar/pull/10923): Update the bundled mdast-util-to-hast to 13.2.1 to fix CVE-2025-66400 (unsanitized class attribute).
8
+
9
+ ## 0.4.12
10
+
11
+ ### Patch Changes
12
+
13
+ - [#10742](https://github.com/scalar/scalar/pull/10742): Restore the 1.4 default for highlighted code block containers after the highlighter migration, including plain text and blank lines, while allowing Markdown to retain its own spacing.
14
+ - [#10849](https://github.com/scalar/scalar/pull/10849): Make code block containers own line spacing so highlighted text, plain text, blank lines, and line numbers use the same height. ScalarCodeBlock defaults to 1.4 and Markdown fenced code defaults to 1.5; override either with --scalar-code-line-height on the component or an ancestor. The shared highlighting stylesheet preserves the 1.4 default for direct consumers with a zero-specificity container rule, so existing container overrides still take precedence.
15
+
3
16
  ## 0.4.11
4
17
 
5
18
  ### Patch Changes
@@ -18829,11 +18829,11 @@ function remarkParse(options) {
18829
18829
  }
18830
18830
  }
18831
18831
  //#endregion
18832
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js
18832
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js
18833
18833
  /**
18834
- * @typedef {import('hast').Element} Element
18835
- * @typedef {import('mdast').Blockquote} Blockquote
18836
- * @typedef {import('../state.js').State} State
18834
+ * @import {Element} from 'hast'
18835
+ * @import {Blockquote} from 'mdast'
18836
+ * @import {State} from '../state.js'
18837
18837
  */
18838
18838
  /**
18839
18839
  * Turn an mdast `blockquote` node into hast.
@@ -18857,12 +18857,11 @@ function blockquote(state, node) {
18857
18857
  return state.applyData(node, result);
18858
18858
  }
18859
18859
  //#endregion
18860
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/break.js
18860
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/break.js
18861
18861
  /**
18862
- * @typedef {import('hast').Element} Element
18863
- * @typedef {import('hast').Text} Text
18864
- * @typedef {import('mdast').Break} Break
18865
- * @typedef {import('../state.js').State} State
18862
+ * @import {Element, Text} from 'hast'
18863
+ * @import {Break} from 'mdast'
18864
+ * @import {State} from '../state.js'
18866
18865
  */
18867
18866
  /**
18868
18867
  * Turn an mdast `break` node into hast.
@@ -18889,12 +18888,11 @@ function hardBreak(state, node) {
18889
18888
  }];
18890
18889
  }
18891
18890
  //#endregion
18892
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/code.js
18891
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/code.js
18893
18892
  /**
18894
- * @typedef {import('hast').Element} Element
18895
- * @typedef {import('hast').Properties} Properties
18896
- * @typedef {import('mdast').Code} Code
18897
- * @typedef {import('../state.js').State} State
18893
+ * @import {Element, Properties} from 'hast'
18894
+ * @import {Code} from 'mdast'
18895
+ * @import {State} from '../state.js'
18898
18896
  */
18899
18897
  /**
18900
18898
  * Turn an mdast `code` node into hast.
@@ -18910,7 +18908,8 @@ function code(state, node) {
18910
18908
  const value = node.value ? node.value + "\n" : "";
18911
18909
  /** @type {Properties} */
18912
18910
  const properties = {};
18913
- if (node.lang) properties.className = ["language-" + node.lang];
18911
+ const language = node.lang ? node.lang.split(/\s+/) : [];
18912
+ if (language.length > 0) properties.className = ["language-" + language[0]];
18914
18913
  /** @type {Element} */
18915
18914
  let result = {
18916
18915
  type: "element",
@@ -18934,11 +18933,11 @@ function code(state, node) {
18934
18933
  return result;
18935
18934
  }
18936
18935
  //#endregion
18937
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/delete.js
18936
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/delete.js
18938
18937
  /**
18939
- * @typedef {import('hast').Element} Element
18940
- * @typedef {import('mdast').Delete} Delete
18941
- * @typedef {import('../state.js').State} State
18938
+ * @import {Element} from 'hast'
18939
+ * @import {Delete} from 'mdast'
18940
+ * @import {State} from '../state.js'
18942
18941
  */
18943
18942
  /**
18944
18943
  * Turn an mdast `delete` node into hast.
@@ -18962,11 +18961,11 @@ function strikethrough(state, node) {
18962
18961
  return state.applyData(node, result);
18963
18962
  }
18964
18963
  //#endregion
18965
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js
18964
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js
18966
18965
  /**
18967
- * @typedef {import('hast').Element} Element
18968
- * @typedef {import('mdast').Emphasis} Emphasis
18969
- * @typedef {import('../state.js').State} State
18966
+ * @import {Element} from 'hast'
18967
+ * @import {Emphasis} from 'mdast'
18968
+ * @import {State} from '../state.js'
18970
18969
  */
18971
18970
  /**
18972
18971
  * Turn an mdast `emphasis` node into hast.
@@ -18990,11 +18989,11 @@ function emphasis(state, node) {
18990
18989
  return state.applyData(node, result);
18991
18990
  }
18992
18991
  //#endregion
18993
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js
18992
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js
18994
18993
  /**
18995
- * @typedef {import('hast').Element} Element
18996
- * @typedef {import('mdast').FootnoteReference} FootnoteReference
18997
- * @typedef {import('../state.js').State} State
18994
+ * @import {Element} from 'hast'
18995
+ * @import {FootnoteReference} from 'mdast'
18996
+ * @import {State} from '../state.js'
18998
18997
  */
18999
18998
  /**
19000
18999
  * Turn an mdast `footnoteReference` node into hast.
@@ -19048,11 +19047,11 @@ function footnoteReference(state, node) {
19048
19047
  return state.applyData(node, sup);
19049
19048
  }
19050
19049
  //#endregion
19051
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/heading.js
19050
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/heading.js
19052
19051
  /**
19053
- * @typedef {import('hast').Element} Element
19054
- * @typedef {import('mdast').Heading} Heading
19055
- * @typedef {import('../state.js').State} State
19052
+ * @import {Element} from 'hast'
19053
+ * @import {Heading} from 'mdast'
19054
+ * @import {State} from '../state.js'
19056
19055
  */
19057
19056
  /**
19058
19057
  * Turn an mdast `heading` node into hast.
@@ -19076,12 +19075,12 @@ function heading(state, node) {
19076
19075
  return state.applyData(node, result);
19077
19076
  }
19078
19077
  //#endregion
19079
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/html.js
19078
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/html.js
19080
19079
  /**
19081
- * @typedef {import('hast').Element} Element
19082
- * @typedef {import('mdast').Html} Html
19083
- * @typedef {import('../state.js').State} State
19084
- * @typedef {import('../../index.js').Raw} Raw
19080
+ * @import {Element} from 'hast'
19081
+ * @import {Html} from 'mdast'
19082
+ * @import {State} from '../state.js'
19083
+ * @import {Raw} from '../../index.js'
19085
19084
  */
19086
19085
  /**
19087
19086
  * Turn an mdast `html` node into hast (`raw` node in dangerous mode, otherwise
@@ -19106,14 +19105,11 @@ function html(state, node) {
19106
19105
  }
19107
19106
  }
19108
19107
  //#endregion
19109
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/revert.js
19108
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/revert.js
19110
19109
  /**
19111
- * @typedef {import('hast').ElementContent} ElementContent
19112
- *
19113
- * @typedef {import('mdast').Nodes} Nodes
19114
- * @typedef {import('mdast').Reference} Reference
19115
- *
19116
- * @typedef {import('./state.js').State} State
19110
+ * @import {ElementContent} from 'hast'
19111
+ * @import {Reference, Nodes} from 'mdast'
19112
+ * @import {State} from './state.js'
19117
19113
  */
19118
19114
  /**
19119
19115
  * Return the content of a reference without definition as plain text.
@@ -19150,13 +19146,11 @@ function revert(state, node) {
19150
19146
  return contents;
19151
19147
  }
19152
19148
  //#endregion
19153
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js
19149
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js
19154
19150
  /**
19155
- * @typedef {import('hast').Element} Element
19156
- * @typedef {import('hast').ElementContent} ElementContent
19157
- * @typedef {import('hast').Properties} Properties
19158
- * @typedef {import('mdast').ImageReference} ImageReference
19159
- * @typedef {import('../state.js').State} State
19151
+ * @import {ElementContent, Element, Properties} from 'hast'
19152
+ * @import {ImageReference} from 'mdast'
19153
+ * @import {State} from '../state.js'
19160
19154
  */
19161
19155
  /**
19162
19156
  * Turn an mdast `imageReference` node into hast.
@@ -19189,12 +19183,11 @@ function imageReference(state, node) {
19189
19183
  return state.applyData(node, result);
19190
19184
  }
19191
19185
  //#endregion
19192
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/image.js
19186
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/image.js
19193
19187
  /**
19194
- * @typedef {import('hast').Element} Element
19195
- * @typedef {import('hast').Properties} Properties
19196
- * @typedef {import('mdast').Image} Image
19197
- * @typedef {import('../state.js').State} State
19188
+ * @import {Element, Properties} from 'hast'
19189
+ * @import {Image} from 'mdast'
19190
+ * @import {State} from '../state.js'
19198
19191
  */
19199
19192
  /**
19200
19193
  * Turn an mdast `image` node into hast.
@@ -19222,12 +19215,11 @@ function image(state, node) {
19222
19215
  return state.applyData(node, result);
19223
19216
  }
19224
19217
  //#endregion
19225
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js
19218
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js
19226
19219
  /**
19227
- * @typedef {import('hast').Element} Element
19228
- * @typedef {import('hast').Text} Text
19229
- * @typedef {import('mdast').InlineCode} InlineCode
19230
- * @typedef {import('../state.js').State} State
19220
+ * @import {Element, Text} from 'hast'
19221
+ * @import {InlineCode} from 'mdast'
19222
+ * @import {State} from '../state.js'
19231
19223
  */
19232
19224
  /**
19233
19225
  * Turn an mdast `inlineCode` node into hast.
@@ -19257,13 +19249,11 @@ function inlineCode(state, node) {
19257
19249
  return state.applyData(node, result);
19258
19250
  }
19259
19251
  //#endregion
19260
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js
19252
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js
19261
19253
  /**
19262
- * @typedef {import('hast').Element} Element
19263
- * @typedef {import('hast').ElementContent} ElementContent
19264
- * @typedef {import('hast').Properties} Properties
19265
- * @typedef {import('mdast').LinkReference} LinkReference
19266
- * @typedef {import('../state.js').State} State
19254
+ * @import {ElementContent, Element, Properties} from 'hast'
19255
+ * @import {LinkReference} from 'mdast'
19256
+ * @import {State} from '../state.js'
19267
19257
  */
19268
19258
  /**
19269
19259
  * Turn an mdast `linkReference` node into hast.
@@ -19293,12 +19283,11 @@ function linkReference(state, node) {
19293
19283
  return state.applyData(node, result);
19294
19284
  }
19295
19285
  //#endregion
19296
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/link.js
19286
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/link.js
19297
19287
  /**
19298
- * @typedef {import('hast').Element} Element
19299
- * @typedef {import('hast').Properties} Properties
19300
- * @typedef {import('mdast').Link} Link
19301
- * @typedef {import('../state.js').State} State
19288
+ * @import {Element, Properties} from 'hast'
19289
+ * @import {Link} from 'mdast'
19290
+ * @import {State} from '../state.js'
19302
19291
  */
19303
19292
  /**
19304
19293
  * Turn an mdast `link` node into hast.
@@ -19325,14 +19314,11 @@ function link(state, node) {
19325
19314
  return state.applyData(node, result);
19326
19315
  }
19327
19316
  //#endregion
19328
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/list-item.js
19317
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/list-item.js
19329
19318
  /**
19330
- * @typedef {import('hast').Element} Element
19331
- * @typedef {import('hast').ElementContent} ElementContent
19332
- * @typedef {import('hast').Properties} Properties
19333
- * @typedef {import('mdast').ListItem} ListItem
19334
- * @typedef {import('mdast').Parents} Parents
19335
- * @typedef {import('../state.js').State} State
19319
+ * @import {ElementContent, Element, Properties} from 'hast'
19320
+ * @import {ListItem, Parents} from 'mdast'
19321
+ * @import {State} from '../state.js'
19336
19322
  */
19337
19323
  /**
19338
19324
  * Turn an mdast `listItem` node into hast.
@@ -19431,12 +19417,11 @@ function listItemLoose(node) {
19431
19417
  return spread === null || spread === void 0 ? node.children.length > 1 : spread;
19432
19418
  }
19433
19419
  //#endregion
19434
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/list.js
19420
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/list.js
19435
19421
  /**
19436
- * @typedef {import('hast').Element} Element
19437
- * @typedef {import('hast').Properties} Properties
19438
- * @typedef {import('mdast').List} List
19439
- * @typedef {import('../state.js').State} State
19422
+ * @import {Element, Properties} from 'hast'
19423
+ * @import {List} from 'mdast'
19424
+ * @import {State} from '../state.js'
19440
19425
  */
19441
19426
  /**
19442
19427
  * Turn an mdast `list` node into hast.
@@ -19472,11 +19457,11 @@ function list(state, node) {
19472
19457
  return state.applyData(node, result);
19473
19458
  }
19474
19459
  //#endregion
19475
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js
19460
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js
19476
19461
  /**
19477
- * @typedef {import('hast').Element} Element
19478
- * @typedef {import('mdast').Paragraph} Paragraph
19479
- * @typedef {import('../state.js').State} State
19462
+ * @import {Element} from 'hast'
19463
+ * @import {Paragraph} from 'mdast'
19464
+ * @import {State} from '../state.js'
19480
19465
  */
19481
19466
  /**
19482
19467
  * Turn an mdast `paragraph` node into hast.
@@ -19500,12 +19485,11 @@ function paragraph(state, node) {
19500
19485
  return state.applyData(node, result);
19501
19486
  }
19502
19487
  //#endregion
19503
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/root.js
19488
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/root.js
19504
19489
  /**
19505
- * @typedef {import('hast').Parents} HastParents
19506
- * @typedef {import('hast').Root} HastRoot
19507
- * @typedef {import('mdast').Root} MdastRoot
19508
- * @typedef {import('../state.js').State} State
19490
+ * @import {Parents as HastParents, Root as HastRoot} from 'hast'
19491
+ * @import {Root as MdastRoot} from 'mdast'
19492
+ * @import {State} from '../state.js'
19509
19493
  */
19510
19494
  /**
19511
19495
  * Turn an mdast `root` node into hast.
@@ -19527,11 +19511,11 @@ function root(state, node) {
19527
19511
  return state.applyData(node, result);
19528
19512
  }
19529
19513
  //#endregion
19530
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/strong.js
19514
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/strong.js
19531
19515
  /**
19532
- * @typedef {import('hast').Element} Element
19533
- * @typedef {import('mdast').Strong} Strong
19534
- * @typedef {import('../state.js').State} State
19516
+ * @import {Element} from 'hast'
19517
+ * @import {Strong} from 'mdast'
19518
+ * @import {State} from '../state.js'
19535
19519
  */
19536
19520
  /**
19537
19521
  * Turn an mdast `strong` node into hast.
@@ -19555,11 +19539,11 @@ function strong(state, node) {
19555
19539
  return state.applyData(node, result);
19556
19540
  }
19557
19541
  //#endregion
19558
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table.js
19542
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table.js
19559
19543
  /**
19560
- * @typedef {import('hast').Element} Element
19561
- * @typedef {import('mdast').Table} Table
19562
- * @typedef {import('../state.js').State} State
19544
+ * @import {Table} from 'mdast'
19545
+ * @import {Element} from 'hast'
19546
+ * @import {State} from '../state.js'
19563
19547
  */
19564
19548
  /**
19565
19549
  * Turn an mdast `table` node into hast.
@@ -19614,14 +19598,11 @@ function table(state, node) {
19614
19598
  return state.applyData(node, result);
19615
19599
  }
19616
19600
  //#endregion
19617
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table-row.js
19601
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table-row.js
19618
19602
  /**
19619
- * @typedef {import('hast').Element} Element
19620
- * @typedef {import('hast').ElementContent} ElementContent
19621
- * @typedef {import('hast').Properties} Properties
19622
- * @typedef {import('mdast').Parents} Parents
19623
- * @typedef {import('mdast').TableRow} TableRow
19624
- * @typedef {import('../state.js').State} State
19603
+ * @import {Element, ElementContent, Properties} from 'hast'
19604
+ * @import {Parents, TableRow} from 'mdast'
19605
+ * @import {State} from '../state.js'
19625
19606
  */
19626
19607
  /**
19627
19608
  * Turn an mdast `tableRow` node into hast.
@@ -19674,11 +19655,11 @@ function tableRow(state, node, parent) {
19674
19655
  return state.applyData(node, result);
19675
19656
  }
19676
19657
  //#endregion
19677
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js
19658
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js
19678
19659
  /**
19679
- * @typedef {import('hast').Element} Element
19680
- * @typedef {import('mdast').TableCell} TableCell
19681
- * @typedef {import('../state.js').State} State
19660
+ * @import {Element} from 'hast'
19661
+ * @import {TableCell} from 'mdast'
19662
+ * @import {State} from '../state.js'
19682
19663
  */
19683
19664
  /**
19684
19665
  * Turn an mdast `tableCell` node into hast.
@@ -19759,12 +19740,11 @@ function trimLine(value, start, end) {
19759
19740
  return endIndex > startIndex ? value.slice(startIndex, endIndex) : "";
19760
19741
  }
19761
19742
  //#endregion
19762
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/text.js
19743
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/text.js
19763
19744
  /**
19764
- * @typedef {import('hast').Element} HastElement
19765
- * @typedef {import('hast').Text} HastText
19766
- * @typedef {import('mdast').Text} MdastText
19767
- * @typedef {import('../state.js').State} State
19745
+ * @import {Element as HastElement, Text as HastText} from 'hast'
19746
+ * @import {Text as MdastText} from 'mdast'
19747
+ * @import {State} from '../state.js'
19768
19748
  */
19769
19749
  /**
19770
19750
  * Turn an mdast `text` node into hast.
@@ -19786,11 +19766,11 @@ function text(state, node) {
19786
19766
  return state.applyData(node, result);
19787
19767
  }
19788
19768
  //#endregion
19789
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js
19769
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js
19790
19770
  /**
19791
- * @typedef {import('hast').Element} Element
19792
- * @typedef {import('mdast').ThematicBreak} ThematicBreak
19793
- * @typedef {import('../state.js').State} State
19771
+ * @import {Element} from 'hast'
19772
+ * @import {ThematicBreak} from 'mdast'
19773
+ * @import {State} from '../state.js'
19794
19774
  */
19795
19775
  /**
19796
19776
  * Turn an mdast `thematicBreak` node into hast.
@@ -19814,11 +19794,14 @@ function thematicBreak(state, node) {
19814
19794
  return state.applyData(node, result);
19815
19795
  }
19816
19796
  //#endregion
19817
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/index.js
19797
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/index.js
19798
+ /**
19799
+ * @import {Handlers} from '../state.js'
19800
+ */
19818
19801
  /**
19819
19802
  * Default handlers for nodes.
19820
19803
  *
19821
- * @satisfies {import('../state.js').Handlers}
19804
+ * @satisfies {Handlers}
19822
19805
  */
19823
19806
  var handlers = {
19824
19807
  blockquote,
@@ -19851,12 +19834,10 @@ var handlers = {
19851
19834
  };
19852
19835
  function ignore() {}
19853
19836
  //#endregion
19854
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/footer.js
19837
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/footer.js
19855
19838
  /**
19856
- * @typedef {import('hast').Element} Element
19857
- * @typedef {import('hast').ElementContent} ElementContent
19858
- *
19859
- * @typedef {import('./state.js').State} State
19839
+ * @import {ElementContent, Element} from 'hast'
19840
+ * @import {State} from './state.js'
19860
19841
  */
19861
19842
  /**
19862
19843
  * @callback FootnoteBackContentTemplate
@@ -20067,24 +20048,27 @@ function footer(state) {
20067
20048
  };
20068
20049
  }
20069
20050
  //#endregion
20070
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/state.js
20071
- /**
20072
- * @typedef {import('hast').Element} HastElement
20073
- * @typedef {import('hast').ElementContent} HastElementContent
20074
- * @typedef {import('hast').Nodes} HastNodes
20075
- * @typedef {import('hast').Properties} HastProperties
20076
- * @typedef {import('hast').RootContent} HastRootContent
20077
- * @typedef {import('hast').Text} HastText
20078
- *
20079
- * @typedef {import('mdast').Definition} MdastDefinition
20080
- * @typedef {import('mdast').FootnoteDefinition} MdastFootnoteDefinition
20081
- * @typedef {import('mdast').Nodes} MdastNodes
20082
- * @typedef {import('mdast').Parents} MdastParents
20083
- *
20084
- * @typedef {import('vfile').VFile} VFile
20085
- *
20086
- * @typedef {import('./footer.js').FootnoteBackContentTemplate} FootnoteBackContentTemplate
20087
- * @typedef {import('./footer.js').FootnoteBackLabelTemplate} FootnoteBackLabelTemplate
20051
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/state.js
20052
+ /**
20053
+ * @import {
20054
+ * ElementContent as HastElementContent,
20055
+ * Element as HastElement,
20056
+ * Nodes as HastNodes,
20057
+ * Properties as HastProperties,
20058
+ * RootContent as HastRootContent,
20059
+ * Text as HastText
20060
+ * } from 'hast'
20061
+ * @import {
20062
+ * Definition as MdastDefinition,
20063
+ * FootnoteDefinition as MdastFootnoteDefinition,
20064
+ * Nodes as MdastNodes,
20065
+ * Parents as MdastParents
20066
+ * } from 'mdast'
20067
+ * @import {VFile} from 'vfile'
20068
+ * @import {
20069
+ * FootnoteBackContentTemplate,
20070
+ * FootnoteBackLabelTemplate
20071
+ * } from './footer.js'
20088
20072
  */
20089
20073
  /**
20090
20074
  * @callback Handler
@@ -20463,11 +20447,11 @@ function trimMarkdownSpaceStart(value) {
20463
20447
  return value.slice(index);
20464
20448
  }
20465
20449
  //#endregion
20466
- //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/index.js
20450
+ //#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/index.js
20467
20451
  /**
20468
- * @typedef {import('hast').Nodes} HastNodes
20469
- * @typedef {import('mdast').Nodes} MdastNodes
20470
- * @typedef {import('./state.js').Options} Options
20452
+ * @import {Nodes as HastNodes} from 'hast'
20453
+ * @import {Nodes as MdastNodes} from 'mdast'
20454
+ * @import {Options} from './state.js'
20471
20455
  */
20472
20456
  /**
20473
20457
  * Transform mdast to hast.