@scalar/code-highlight 0.4.12 → 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 +6 -0
- package/dist/chunks/markdown.js +132 -148
- package/dist/chunks/markdown.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 0.4.12
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/chunks/markdown.js
CHANGED
|
@@ -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.
|
|
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
|
-
* @
|
|
18835
|
-
* @
|
|
18836
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
18863
|
-
* @
|
|
18864
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
18895
|
-
* @
|
|
18896
|
-
* @
|
|
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
|
-
|
|
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.
|
|
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
|
-
* @
|
|
18940
|
-
* @
|
|
18941
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
18968
|
-
* @
|
|
18969
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
18996
|
-
* @
|
|
18997
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
19054
|
-
* @
|
|
19055
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
19082
|
-
* @
|
|
19083
|
-
* @
|
|
19084
|
-
* @
|
|
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.
|
|
19108
|
+
//#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/revert.js
|
|
19110
19109
|
/**
|
|
19111
|
-
* @
|
|
19112
|
-
*
|
|
19113
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
19156
|
-
* @
|
|
19157
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
19195
|
-
* @
|
|
19196
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
19228
|
-
* @
|
|
19229
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
19263
|
-
* @
|
|
19264
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
19299
|
-
* @
|
|
19300
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
19331
|
-
* @
|
|
19332
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
19437
|
-
* @
|
|
19438
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
19478
|
-
* @
|
|
19479
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
19506
|
-
* @
|
|
19507
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
19533
|
-
* @
|
|
19534
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
19561
|
-
* @
|
|
19562
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
19620
|
-
* @
|
|
19621
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
19680
|
-
* @
|
|
19681
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
19765
|
-
* @
|
|
19766
|
-
* @
|
|
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.
|
|
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
|
-
* @
|
|
19792
|
-
* @
|
|
19793
|
-
* @
|
|
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.
|
|
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 {
|
|
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.
|
|
19837
|
+
//#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/footer.js
|
|
19855
19838
|
/**
|
|
19856
|
-
* @
|
|
19857
|
-
* @
|
|
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.
|
|
20071
|
-
/**
|
|
20072
|
-
* @
|
|
20073
|
-
*
|
|
20074
|
-
*
|
|
20075
|
-
*
|
|
20076
|
-
*
|
|
20077
|
-
*
|
|
20078
|
-
*
|
|
20079
|
-
*
|
|
20080
|
-
* @
|
|
20081
|
-
*
|
|
20082
|
-
*
|
|
20083
|
-
*
|
|
20084
|
-
*
|
|
20085
|
-
*
|
|
20086
|
-
* @
|
|
20087
|
-
* @
|
|
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.
|
|
20450
|
+
//#region ../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/index.js
|
|
20467
20451
|
/**
|
|
20468
|
-
* @
|
|
20469
|
-
* @
|
|
20470
|
-
* @
|
|
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.
|