remark-mdat 1.1.2 → 1.1.3
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 +1180 -0
- package/package.json +5 -5
- package/dist/.DS_Store +0 -0
package/dist/index.js
CHANGED
|
@@ -1820,6 +1820,211 @@ function color(d) {
|
|
|
1820
1820
|
|
|
1821
1821
|
//#endregion
|
|
1822
1822
|
//#region node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.js
|
|
1823
|
+
/**
|
|
1824
|
+
* @import {Node as UnistNode, Parent as UnistParent} from 'unist'
|
|
1825
|
+
*/
|
|
1826
|
+
/**
|
|
1827
|
+
* @typedef {Exclude<import('unist-util-is').Test, undefined> | undefined} Test
|
|
1828
|
+
* Test from `unist-util-is`.
|
|
1829
|
+
*
|
|
1830
|
+
* Note: we have remove and add `undefined`, because otherwise when generating
|
|
1831
|
+
* automatic `.d.ts` files, TS tries to flatten paths from a local perspective,
|
|
1832
|
+
* which doesn’t work when publishing on npm.
|
|
1833
|
+
*/
|
|
1834
|
+
/**
|
|
1835
|
+
* @typedef {(
|
|
1836
|
+
* Fn extends (value: any) => value is infer Thing
|
|
1837
|
+
* ? Thing
|
|
1838
|
+
* : Fallback
|
|
1839
|
+
* )} Predicate
|
|
1840
|
+
* Get the value of a type guard `Fn`.
|
|
1841
|
+
* @template Fn
|
|
1842
|
+
* Value; typically function that is a type guard (such as `(x): x is Y`).
|
|
1843
|
+
* @template Fallback
|
|
1844
|
+
* Value to yield if `Fn` is not a type guard.
|
|
1845
|
+
*/
|
|
1846
|
+
/**
|
|
1847
|
+
* @typedef {(
|
|
1848
|
+
* Check extends null | undefined // No test.
|
|
1849
|
+
* ? Value
|
|
1850
|
+
* : Value extends {type: Check} // String (type) test.
|
|
1851
|
+
* ? Value
|
|
1852
|
+
* : Value extends Check // Partial test.
|
|
1853
|
+
* ? Value
|
|
1854
|
+
* : Check extends Function // Function test.
|
|
1855
|
+
* ? Predicate<Check, Value> extends Value
|
|
1856
|
+
* ? Predicate<Check, Value>
|
|
1857
|
+
* : never
|
|
1858
|
+
* : never // Some other test?
|
|
1859
|
+
* )} MatchesOne
|
|
1860
|
+
* Check whether a node matches a primitive check in the type system.
|
|
1861
|
+
* @template Value
|
|
1862
|
+
* Value; typically unist `Node`.
|
|
1863
|
+
* @template Check
|
|
1864
|
+
* Value; typically `unist-util-is`-compatible test, but not arrays.
|
|
1865
|
+
*/
|
|
1866
|
+
/**
|
|
1867
|
+
* @typedef {(
|
|
1868
|
+
* Check extends ReadonlyArray<infer T>
|
|
1869
|
+
* ? MatchesOne<Value, T>
|
|
1870
|
+
* : Check extends Array<infer T>
|
|
1871
|
+
* ? MatchesOne<Value, T>
|
|
1872
|
+
* : MatchesOne<Value, Check>
|
|
1873
|
+
* )} Matches
|
|
1874
|
+
* Check whether a node matches a check in the type system.
|
|
1875
|
+
* @template Value
|
|
1876
|
+
* Value; typically unist `Node`.
|
|
1877
|
+
* @template Check
|
|
1878
|
+
* Value; typically `unist-util-is`-compatible test.
|
|
1879
|
+
*/
|
|
1880
|
+
/**
|
|
1881
|
+
* @typedef {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10} Uint
|
|
1882
|
+
* Number; capped reasonably.
|
|
1883
|
+
*/
|
|
1884
|
+
/**
|
|
1885
|
+
* @typedef {I extends 0 ? 1 : I extends 1 ? 2 : I extends 2 ? 3 : I extends 3 ? 4 : I extends 4 ? 5 : I extends 5 ? 6 : I extends 6 ? 7 : I extends 7 ? 8 : I extends 8 ? 9 : 10} Increment
|
|
1886
|
+
* Increment a number in the type system.
|
|
1887
|
+
* @template {Uint} [I=0]
|
|
1888
|
+
* Index.
|
|
1889
|
+
*/
|
|
1890
|
+
/**
|
|
1891
|
+
* @typedef {(
|
|
1892
|
+
* Node extends UnistParent
|
|
1893
|
+
* ? Node extends {children: Array<infer Children>}
|
|
1894
|
+
* ? Child extends Children ? Node : never
|
|
1895
|
+
* : never
|
|
1896
|
+
* : never
|
|
1897
|
+
* )} InternalParent
|
|
1898
|
+
* Collect nodes that can be parents of `Child`.
|
|
1899
|
+
* @template {UnistNode} Node
|
|
1900
|
+
* All node types in a tree.
|
|
1901
|
+
* @template {UnistNode} Child
|
|
1902
|
+
* Node to search for.
|
|
1903
|
+
*/
|
|
1904
|
+
/**
|
|
1905
|
+
* @typedef {InternalParent<InclusiveDescendant<Tree>, Child>} Parent
|
|
1906
|
+
* Collect nodes in `Tree` that can be parents of `Child`.
|
|
1907
|
+
* @template {UnistNode} Tree
|
|
1908
|
+
* All node types in a tree.
|
|
1909
|
+
* @template {UnistNode} Child
|
|
1910
|
+
* Node to search for.
|
|
1911
|
+
*/
|
|
1912
|
+
/**
|
|
1913
|
+
* @typedef {(
|
|
1914
|
+
* Depth extends Max
|
|
1915
|
+
* ? never
|
|
1916
|
+
* :
|
|
1917
|
+
* | InternalParent<Node, Child>
|
|
1918
|
+
* | InternalAncestor<Node, InternalParent<Node, Child>, Max, Increment<Depth>>
|
|
1919
|
+
* )} InternalAncestor
|
|
1920
|
+
* Collect nodes in `Tree` that can be ancestors of `Child`.
|
|
1921
|
+
* @template {UnistNode} Node
|
|
1922
|
+
* All node types in a tree.
|
|
1923
|
+
* @template {UnistNode} Child
|
|
1924
|
+
* Node to search for.
|
|
1925
|
+
* @template {Uint} [Max=10]
|
|
1926
|
+
* Max; searches up to this depth.
|
|
1927
|
+
* @template {Uint} [Depth=0]
|
|
1928
|
+
* Current depth.
|
|
1929
|
+
*/
|
|
1930
|
+
/**
|
|
1931
|
+
* @typedef {InternalAncestor<InclusiveDescendant<Tree>, Child>} Ancestor
|
|
1932
|
+
* Collect nodes in `Tree` that can be ancestors of `Child`.
|
|
1933
|
+
* @template {UnistNode} Tree
|
|
1934
|
+
* All node types in a tree.
|
|
1935
|
+
* @template {UnistNode} Child
|
|
1936
|
+
* Node to search for.
|
|
1937
|
+
*/
|
|
1938
|
+
/**
|
|
1939
|
+
* @typedef {(
|
|
1940
|
+
* Tree extends UnistParent
|
|
1941
|
+
* ? Depth extends Max
|
|
1942
|
+
* ? Tree
|
|
1943
|
+
* : Tree | InclusiveDescendant<Tree['children'][number], Max, Increment<Depth>>
|
|
1944
|
+
* : Tree
|
|
1945
|
+
* )} InclusiveDescendant
|
|
1946
|
+
* Collect all (inclusive) descendants of `Tree`.
|
|
1947
|
+
*
|
|
1948
|
+
* > 👉 **Note**: for performance reasons, this seems to be the fastest way to
|
|
1949
|
+
* > recurse without actually running into an infinite loop, which the
|
|
1950
|
+
* > previous version did.
|
|
1951
|
+
* >
|
|
1952
|
+
* > Practically, a max of `2` is typically enough assuming a `Root` is
|
|
1953
|
+
* > passed, but it doesn’t improve performance.
|
|
1954
|
+
* > It gets higher with `List > ListItem > Table > TableRow > TableCell`.
|
|
1955
|
+
* > Using up to `10` doesn’t hurt or help either.
|
|
1956
|
+
* @template {UnistNode} Tree
|
|
1957
|
+
* Tree type.
|
|
1958
|
+
* @template {Uint} [Max=10]
|
|
1959
|
+
* Max; searches up to this depth.
|
|
1960
|
+
* @template {Uint} [Depth=0]
|
|
1961
|
+
* Current depth.
|
|
1962
|
+
*/
|
|
1963
|
+
/**
|
|
1964
|
+
* @typedef {'skip' | boolean} Action
|
|
1965
|
+
* Union of the action types.
|
|
1966
|
+
*
|
|
1967
|
+
* @typedef {number} Index
|
|
1968
|
+
* Move to the sibling at `index` next (after node itself is completely
|
|
1969
|
+
* traversed).
|
|
1970
|
+
*
|
|
1971
|
+
* Useful if mutating the tree, such as removing the node the visitor is
|
|
1972
|
+
* currently on, or any of its previous siblings.
|
|
1973
|
+
* Results less than 0 or greater than or equal to `children.length` stop
|
|
1974
|
+
* traversing the parent.
|
|
1975
|
+
*
|
|
1976
|
+
* @typedef {[(Action | null | undefined | void)?, (Index | null | undefined)?]} ActionTuple
|
|
1977
|
+
* List with one or two values, the first an action, the second an index.
|
|
1978
|
+
*
|
|
1979
|
+
* @typedef {Action | ActionTuple | Index | null | undefined | void} VisitorResult
|
|
1980
|
+
* Any value that can be returned from a visitor.
|
|
1981
|
+
*/
|
|
1982
|
+
/**
|
|
1983
|
+
* @callback Visitor
|
|
1984
|
+
* Handle a node (matching `test`, if given).
|
|
1985
|
+
*
|
|
1986
|
+
* Visitors are free to transform `node`.
|
|
1987
|
+
* They can also transform the parent of node (the last of `ancestors`).
|
|
1988
|
+
*
|
|
1989
|
+
* Replacing `node` itself, if `SKIP` is not returned, still causes its
|
|
1990
|
+
* descendants to be walked (which is a bug).
|
|
1991
|
+
*
|
|
1992
|
+
* When adding or removing previous siblings of `node` (or next siblings, in
|
|
1993
|
+
* case of reverse), the `Visitor` should return a new `Index` to specify the
|
|
1994
|
+
* sibling to traverse after `node` is traversed.
|
|
1995
|
+
* Adding or removing next siblings of `node` (or previous siblings, in case
|
|
1996
|
+
* of reverse) is handled as expected without needing to return a new `Index`.
|
|
1997
|
+
*
|
|
1998
|
+
* Removing the children property of an ancestor still results in them being
|
|
1999
|
+
* traversed.
|
|
2000
|
+
* @param {Visited} node
|
|
2001
|
+
* Found node.
|
|
2002
|
+
* @param {Array<VisitedParents>} ancestors
|
|
2003
|
+
* Ancestors of `node`.
|
|
2004
|
+
* @returns {VisitorResult}
|
|
2005
|
+
* What to do next.
|
|
2006
|
+
*
|
|
2007
|
+
* An `Index` is treated as a tuple of `[CONTINUE, Index]`.
|
|
2008
|
+
* An `Action` is treated as a tuple of `[Action]`.
|
|
2009
|
+
*
|
|
2010
|
+
* Passing a tuple back only makes sense if the `Action` is `SKIP`.
|
|
2011
|
+
* When the `Action` is `EXIT`, that action can be returned.
|
|
2012
|
+
* When the `Action` is `CONTINUE`, `Index` can be returned.
|
|
2013
|
+
* @template {UnistNode} [Visited=UnistNode]
|
|
2014
|
+
* Visited node type.
|
|
2015
|
+
* @template {UnistParent} [VisitedParents=UnistParent]
|
|
2016
|
+
* Ancestor type.
|
|
2017
|
+
*/
|
|
2018
|
+
/**
|
|
2019
|
+
* @typedef {Visitor<Matches<InclusiveDescendant<Tree>, Check>, Ancestor<Tree, Matches<InclusiveDescendant<Tree>, Check>>>} BuildVisitor
|
|
2020
|
+
* Build a typed `Visitor` function from a tree and a test.
|
|
2021
|
+
*
|
|
2022
|
+
* It will infer which values are passed as `node` and which as `parents`.
|
|
2023
|
+
* @template {UnistNode} [Tree=UnistNode]
|
|
2024
|
+
* Tree type.
|
|
2025
|
+
* @template {Test} [Check=Test]
|
|
2026
|
+
* Test type.
|
|
2027
|
+
*/
|
|
1823
2028
|
/** @type {Readonly<ActionTuple>} */
|
|
1824
2029
|
const empty = [];
|
|
1825
2030
|
/**
|
|
@@ -1950,6 +2155,216 @@ function toResult(value) {
|
|
|
1950
2155
|
//#endregion
|
|
1951
2156
|
//#region node_modules/.pnpm/unist-util-visit@5.0.0/node_modules/unist-util-visit/lib/index.js
|
|
1952
2157
|
/**
|
|
2158
|
+
* @typedef {import('unist').Node} UnistNode
|
|
2159
|
+
* @typedef {import('unist').Parent} UnistParent
|
|
2160
|
+
* @typedef {import('unist-util-visit-parents').VisitorResult} VisitorResult
|
|
2161
|
+
*/
|
|
2162
|
+
/**
|
|
2163
|
+
* @typedef {Exclude<import('unist-util-is').Test, undefined> | undefined} Test
|
|
2164
|
+
* Test from `unist-util-is`.
|
|
2165
|
+
*
|
|
2166
|
+
* Note: we have remove and add `undefined`, because otherwise when generating
|
|
2167
|
+
* automatic `.d.ts` files, TS tries to flatten paths from a local perspective,
|
|
2168
|
+
* which doesn’t work when publishing on npm.
|
|
2169
|
+
*/
|
|
2170
|
+
/**
|
|
2171
|
+
* @typedef {(
|
|
2172
|
+
* Fn extends (value: any) => value is infer Thing
|
|
2173
|
+
* ? Thing
|
|
2174
|
+
* : Fallback
|
|
2175
|
+
* )} Predicate
|
|
2176
|
+
* Get the value of a type guard `Fn`.
|
|
2177
|
+
* @template Fn
|
|
2178
|
+
* Value; typically function that is a type guard (such as `(x): x is Y`).
|
|
2179
|
+
* @template Fallback
|
|
2180
|
+
* Value to yield if `Fn` is not a type guard.
|
|
2181
|
+
*/
|
|
2182
|
+
/**
|
|
2183
|
+
* @typedef {(
|
|
2184
|
+
* Check extends null | undefined // No test.
|
|
2185
|
+
* ? Value
|
|
2186
|
+
* : Value extends {type: Check} // String (type) test.
|
|
2187
|
+
* ? Value
|
|
2188
|
+
* : Value extends Check // Partial test.
|
|
2189
|
+
* ? Value
|
|
2190
|
+
* : Check extends Function // Function test.
|
|
2191
|
+
* ? Predicate<Check, Value> extends Value
|
|
2192
|
+
* ? Predicate<Check, Value>
|
|
2193
|
+
* : never
|
|
2194
|
+
* : never // Some other test?
|
|
2195
|
+
* )} MatchesOne
|
|
2196
|
+
* Check whether a node matches a primitive check in the type system.
|
|
2197
|
+
* @template Value
|
|
2198
|
+
* Value; typically unist `Node`.
|
|
2199
|
+
* @template Check
|
|
2200
|
+
* Value; typically `unist-util-is`-compatible test, but not arrays.
|
|
2201
|
+
*/
|
|
2202
|
+
/**
|
|
2203
|
+
* @typedef {(
|
|
2204
|
+
* Check extends Array<any>
|
|
2205
|
+
* ? MatchesOne<Value, Check[keyof Check]>
|
|
2206
|
+
* : MatchesOne<Value, Check>
|
|
2207
|
+
* )} Matches
|
|
2208
|
+
* Check whether a node matches a check in the type system.
|
|
2209
|
+
* @template Value
|
|
2210
|
+
* Value; typically unist `Node`.
|
|
2211
|
+
* @template Check
|
|
2212
|
+
* Value; typically `unist-util-is`-compatible test.
|
|
2213
|
+
*/
|
|
2214
|
+
/**
|
|
2215
|
+
* @typedef {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10} Uint
|
|
2216
|
+
* Number; capped reasonably.
|
|
2217
|
+
*/
|
|
2218
|
+
/**
|
|
2219
|
+
* @typedef {I extends 0 ? 1 : I extends 1 ? 2 : I extends 2 ? 3 : I extends 3 ? 4 : I extends 4 ? 5 : I extends 5 ? 6 : I extends 6 ? 7 : I extends 7 ? 8 : I extends 8 ? 9 : 10} Increment
|
|
2220
|
+
* Increment a number in the type system.
|
|
2221
|
+
* @template {Uint} [I=0]
|
|
2222
|
+
* Index.
|
|
2223
|
+
*/
|
|
2224
|
+
/**
|
|
2225
|
+
* @typedef {(
|
|
2226
|
+
* Node extends UnistParent
|
|
2227
|
+
* ? Node extends {children: Array<infer Children>}
|
|
2228
|
+
* ? Child extends Children ? Node : never
|
|
2229
|
+
* : never
|
|
2230
|
+
* : never
|
|
2231
|
+
* )} InternalParent
|
|
2232
|
+
* Collect nodes that can be parents of `Child`.
|
|
2233
|
+
* @template {UnistNode} Node
|
|
2234
|
+
* All node types in a tree.
|
|
2235
|
+
* @template {UnistNode} Child
|
|
2236
|
+
* Node to search for.
|
|
2237
|
+
*/
|
|
2238
|
+
/**
|
|
2239
|
+
* @typedef {InternalParent<InclusiveDescendant<Tree>, Child>} Parent
|
|
2240
|
+
* Collect nodes in `Tree` that can be parents of `Child`.
|
|
2241
|
+
* @template {UnistNode} Tree
|
|
2242
|
+
* All node types in a tree.
|
|
2243
|
+
* @template {UnistNode} Child
|
|
2244
|
+
* Node to search for.
|
|
2245
|
+
*/
|
|
2246
|
+
/**
|
|
2247
|
+
* @typedef {(
|
|
2248
|
+
* Depth extends Max
|
|
2249
|
+
* ? never
|
|
2250
|
+
* :
|
|
2251
|
+
* | InternalParent<Node, Child>
|
|
2252
|
+
* | InternalAncestor<Node, InternalParent<Node, Child>, Max, Increment<Depth>>
|
|
2253
|
+
* )} InternalAncestor
|
|
2254
|
+
* Collect nodes in `Tree` that can be ancestors of `Child`.
|
|
2255
|
+
* @template {UnistNode} Node
|
|
2256
|
+
* All node types in a tree.
|
|
2257
|
+
* @template {UnistNode} Child
|
|
2258
|
+
* Node to search for.
|
|
2259
|
+
* @template {Uint} [Max=10]
|
|
2260
|
+
* Max; searches up to this depth.
|
|
2261
|
+
* @template {Uint} [Depth=0]
|
|
2262
|
+
* Current depth.
|
|
2263
|
+
*/
|
|
2264
|
+
/**
|
|
2265
|
+
* @typedef {(
|
|
2266
|
+
* Tree extends UnistParent
|
|
2267
|
+
* ? Depth extends Max
|
|
2268
|
+
* ? Tree
|
|
2269
|
+
* : Tree | InclusiveDescendant<Tree['children'][number], Max, Increment<Depth>>
|
|
2270
|
+
* : Tree
|
|
2271
|
+
* )} InclusiveDescendant
|
|
2272
|
+
* Collect all (inclusive) descendants of `Tree`.
|
|
2273
|
+
*
|
|
2274
|
+
* > 👉 **Note**: for performance reasons, this seems to be the fastest way to
|
|
2275
|
+
* > recurse without actually running into an infinite loop, which the
|
|
2276
|
+
* > previous version did.
|
|
2277
|
+
* >
|
|
2278
|
+
* > Practically, a max of `2` is typically enough assuming a `Root` is
|
|
2279
|
+
* > passed, but it doesn’t improve performance.
|
|
2280
|
+
* > It gets higher with `List > ListItem > Table > TableRow > TableCell`.
|
|
2281
|
+
* > Using up to `10` doesn’t hurt or help either.
|
|
2282
|
+
* @template {UnistNode} Tree
|
|
2283
|
+
* Tree type.
|
|
2284
|
+
* @template {Uint} [Max=10]
|
|
2285
|
+
* Max; searches up to this depth.
|
|
2286
|
+
* @template {Uint} [Depth=0]
|
|
2287
|
+
* Current depth.
|
|
2288
|
+
*/
|
|
2289
|
+
/**
|
|
2290
|
+
* @callback Visitor
|
|
2291
|
+
* Handle a node (matching `test`, if given).
|
|
2292
|
+
*
|
|
2293
|
+
* Visitors are free to transform `node`.
|
|
2294
|
+
* They can also transform `parent`.
|
|
2295
|
+
*
|
|
2296
|
+
* Replacing `node` itself, if `SKIP` is not returned, still causes its
|
|
2297
|
+
* descendants to be walked (which is a bug).
|
|
2298
|
+
*
|
|
2299
|
+
* When adding or removing previous siblings of `node` (or next siblings, in
|
|
2300
|
+
* case of reverse), the `Visitor` should return a new `Index` to specify the
|
|
2301
|
+
* sibling to traverse after `node` is traversed.
|
|
2302
|
+
* Adding or removing next siblings of `node` (or previous siblings, in case
|
|
2303
|
+
* of reverse) is handled as expected without needing to return a new `Index`.
|
|
2304
|
+
*
|
|
2305
|
+
* Removing the children property of `parent` still results in them being
|
|
2306
|
+
* traversed.
|
|
2307
|
+
* @param {Visited} node
|
|
2308
|
+
* Found node.
|
|
2309
|
+
* @param {Visited extends UnistNode ? number | undefined : never} index
|
|
2310
|
+
* Index of `node` in `parent`.
|
|
2311
|
+
* @param {Ancestor extends UnistParent ? Ancestor | undefined : never} parent
|
|
2312
|
+
* Parent of `node`.
|
|
2313
|
+
* @returns {VisitorResult}
|
|
2314
|
+
* What to do next.
|
|
2315
|
+
*
|
|
2316
|
+
* An `Index` is treated as a tuple of `[CONTINUE, Index]`.
|
|
2317
|
+
* An `Action` is treated as a tuple of `[Action]`.
|
|
2318
|
+
*
|
|
2319
|
+
* Passing a tuple back only makes sense if the `Action` is `SKIP`.
|
|
2320
|
+
* When the `Action` is `EXIT`, that action can be returned.
|
|
2321
|
+
* When the `Action` is `CONTINUE`, `Index` can be returned.
|
|
2322
|
+
* @template {UnistNode} [Visited=UnistNode]
|
|
2323
|
+
* Visited node type.
|
|
2324
|
+
* @template {UnistParent} [Ancestor=UnistParent]
|
|
2325
|
+
* Ancestor type.
|
|
2326
|
+
*/
|
|
2327
|
+
/**
|
|
2328
|
+
* @typedef {Visitor<Visited, Parent<Ancestor, Visited>>} BuildVisitorFromMatch
|
|
2329
|
+
* Build a typed `Visitor` function from a node and all possible parents.
|
|
2330
|
+
*
|
|
2331
|
+
* It will infer which values are passed as `node` and which as `parent`.
|
|
2332
|
+
* @template {UnistNode} Visited
|
|
2333
|
+
* Node type.
|
|
2334
|
+
* @template {UnistParent} Ancestor
|
|
2335
|
+
* Parent type.
|
|
2336
|
+
*/
|
|
2337
|
+
/**
|
|
2338
|
+
* @typedef {(
|
|
2339
|
+
* BuildVisitorFromMatch<
|
|
2340
|
+
* Matches<Descendant, Check>,
|
|
2341
|
+
* Extract<Descendant, UnistParent>
|
|
2342
|
+
* >
|
|
2343
|
+
* )} BuildVisitorFromDescendants
|
|
2344
|
+
* Build a typed `Visitor` function from a list of descendants and a test.
|
|
2345
|
+
*
|
|
2346
|
+
* It will infer which values are passed as `node` and which as `parent`.
|
|
2347
|
+
* @template {UnistNode} Descendant
|
|
2348
|
+
* Node type.
|
|
2349
|
+
* @template {Test} Check
|
|
2350
|
+
* Test type.
|
|
2351
|
+
*/
|
|
2352
|
+
/**
|
|
2353
|
+
* @typedef {(
|
|
2354
|
+
* BuildVisitorFromDescendants<
|
|
2355
|
+
* InclusiveDescendant<Tree>,
|
|
2356
|
+
* Check
|
|
2357
|
+
* >
|
|
2358
|
+
* )} BuildVisitor
|
|
2359
|
+
* Build a typed `Visitor` function from a tree and a test.
|
|
2360
|
+
*
|
|
2361
|
+
* It will infer which values are passed as `node` and which as `parent`.
|
|
2362
|
+
* @template {UnistNode} [Tree=UnistNode]
|
|
2363
|
+
* Node type.
|
|
2364
|
+
* @template {Test} [Check=Test]
|
|
2365
|
+
* Test type.
|
|
2366
|
+
*/
|
|
2367
|
+
/**
|
|
1953
2368
|
* Visit nodes.
|
|
1954
2369
|
*
|
|
1955
2370
|
* This algorithm performs *depth-first* *tree traversal* in *preorder*
|
|
@@ -3167,6 +3582,25 @@ function index(value) {
|
|
|
3167
3582
|
//#endregion
|
|
3168
3583
|
//#region node_modules/.pnpm/vfile-message@4.0.3/node_modules/vfile-message/lib/index.js
|
|
3169
3584
|
/**
|
|
3585
|
+
* @import {Node, Point, Position} from 'unist'
|
|
3586
|
+
*/
|
|
3587
|
+
/**
|
|
3588
|
+
* @typedef {object & {type: string, position?: Position | undefined}} NodeLike
|
|
3589
|
+
*
|
|
3590
|
+
* @typedef Options
|
|
3591
|
+
* Configuration.
|
|
3592
|
+
* @property {Array<Node> | null | undefined} [ancestors]
|
|
3593
|
+
* Stack of (inclusive) ancestor nodes surrounding the message (optional).
|
|
3594
|
+
* @property {Error | null | undefined} [cause]
|
|
3595
|
+
* Original error cause of the message (optional).
|
|
3596
|
+
* @property {Point | Position | null | undefined} [place]
|
|
3597
|
+
* Place of message (optional).
|
|
3598
|
+
* @property {string | null | undefined} [ruleId]
|
|
3599
|
+
* Category of message (optional, example: `'my-rule'`).
|
|
3600
|
+
* @property {string | null | undefined} [source]
|
|
3601
|
+
* Namespace of who sent the message (optional, example: `'my-package'`).
|
|
3602
|
+
*/
|
|
3603
|
+
/**
|
|
3170
3604
|
* Message.
|
|
3171
3605
|
*/
|
|
3172
3606
|
var VFileMessage = class extends Error {
|
|
@@ -6099,6 +6533,14 @@ function push(list$3, items) {
|
|
|
6099
6533
|
|
|
6100
6534
|
//#endregion
|
|
6101
6535
|
//#region node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.js
|
|
6536
|
+
/**
|
|
6537
|
+
* @import {
|
|
6538
|
+
* Extension,
|
|
6539
|
+
* Handles,
|
|
6540
|
+
* HtmlExtension,
|
|
6541
|
+
* NormalizedExtension
|
|
6542
|
+
* } from 'micromark-util-types'
|
|
6543
|
+
*/
|
|
6102
6544
|
const hasOwnProperty = {}.hasOwnProperty;
|
|
6103
6545
|
/**
|
|
6104
6546
|
* Combine multiple syntax extensions into one.
|
|
@@ -6440,6 +6882,9 @@ function regexCheck(regex) {
|
|
|
6440
6882
|
//#endregion
|
|
6441
6883
|
//#region node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.js
|
|
6442
6884
|
/**
|
|
6885
|
+
* @import {Effects, State, TokenType} from 'micromark-util-types'
|
|
6886
|
+
*/
|
|
6887
|
+
/**
|
|
6443
6888
|
* Parse spaces and tabs.
|
|
6444
6889
|
*
|
|
6445
6890
|
* There is no `nok` parameter:
|
|
@@ -6496,6 +6941,15 @@ function factorySpace(effects, ok$2, type, max) {
|
|
|
6496
6941
|
|
|
6497
6942
|
//#endregion
|
|
6498
6943
|
//#region node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/content.js
|
|
6944
|
+
/**
|
|
6945
|
+
* @import {
|
|
6946
|
+
* InitialConstruct,
|
|
6947
|
+
* Initializer,
|
|
6948
|
+
* State,
|
|
6949
|
+
* TokenizeContext,
|
|
6950
|
+
* Token
|
|
6951
|
+
* } from 'micromark-util-types'
|
|
6952
|
+
*/
|
|
6499
6953
|
/** @type {InitialConstruct} */
|
|
6500
6954
|
const content = { tokenize: initializeContent };
|
|
6501
6955
|
/**
|
|
@@ -6555,6 +7009,23 @@ function initializeContent(effects) {
|
|
|
6555
7009
|
|
|
6556
7010
|
//#endregion
|
|
6557
7011
|
//#region node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/document.js
|
|
7012
|
+
/**
|
|
7013
|
+
* @import {
|
|
7014
|
+
* Construct,
|
|
7015
|
+
* ContainerState,
|
|
7016
|
+
* InitialConstruct,
|
|
7017
|
+
* Initializer,
|
|
7018
|
+
* Point,
|
|
7019
|
+
* State,
|
|
7020
|
+
* TokenizeContext,
|
|
7021
|
+
* Tokenizer,
|
|
7022
|
+
* Token
|
|
7023
|
+
* } from 'micromark-util-types'
|
|
7024
|
+
*/
|
|
7025
|
+
/**
|
|
7026
|
+
* @typedef {[Construct, ContainerState]} StackItem
|
|
7027
|
+
* Construct and its state.
|
|
7028
|
+
*/
|
|
6558
7029
|
/** @type {InitialConstruct} */
|
|
6559
7030
|
const document = { tokenize: initializeDocument };
|
|
6560
7031
|
/** @type {Construct} */
|
|
@@ -6756,6 +7227,9 @@ function tokenizeContainer(effects, ok$2, nok) {
|
|
|
6756
7227
|
//#endregion
|
|
6757
7228
|
//#region node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.js
|
|
6758
7229
|
/**
|
|
7230
|
+
* @import {Code} from 'micromark-util-types'
|
|
7231
|
+
*/
|
|
7232
|
+
/**
|
|
6759
7233
|
* Classify whether a code represents whitespace, punctuation, or something
|
|
6760
7234
|
* else.
|
|
6761
7235
|
*
|
|
@@ -6807,6 +7281,19 @@ function resolveAll(constructs$1, events, context) {
|
|
|
6807
7281
|
|
|
6808
7282
|
//#endregion
|
|
6809
7283
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/attention.js
|
|
7284
|
+
/**
|
|
7285
|
+
* @import {
|
|
7286
|
+
* Code,
|
|
7287
|
+
* Construct,
|
|
7288
|
+
* Event,
|
|
7289
|
+
* Point,
|
|
7290
|
+
* Resolver,
|
|
7291
|
+
* State,
|
|
7292
|
+
* TokenizeContext,
|
|
7293
|
+
* Tokenizer,
|
|
7294
|
+
* Token
|
|
7295
|
+
* } from 'micromark-util-types'
|
|
7296
|
+
*/
|
|
6810
7297
|
/** @type {Construct} */
|
|
6811
7298
|
const attention = {
|
|
6812
7299
|
name: "attention",
|
|
@@ -7015,6 +7502,14 @@ function movePoint(point$3, offset) {
|
|
|
7015
7502
|
|
|
7016
7503
|
//#endregion
|
|
7017
7504
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/autolink.js
|
|
7505
|
+
/**
|
|
7506
|
+
* @import {
|
|
7507
|
+
* Construct,
|
|
7508
|
+
* State,
|
|
7509
|
+
* TokenizeContext,
|
|
7510
|
+
* Tokenizer
|
|
7511
|
+
* } from 'micromark-util-types'
|
|
7512
|
+
*/
|
|
7018
7513
|
/** @type {Construct} */
|
|
7019
7514
|
const autolink = {
|
|
7020
7515
|
name: "autolink",
|
|
@@ -7219,6 +7714,14 @@ function tokenizeAutolink(effects, ok$2, nok) {
|
|
|
7219
7714
|
|
|
7220
7715
|
//#endregion
|
|
7221
7716
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/blank-line.js
|
|
7717
|
+
/**
|
|
7718
|
+
* @import {
|
|
7719
|
+
* Construct,
|
|
7720
|
+
* State,
|
|
7721
|
+
* TokenizeContext,
|
|
7722
|
+
* Tokenizer
|
|
7723
|
+
* } from 'micromark-util-types'
|
|
7724
|
+
*/
|
|
7222
7725
|
/** @type {Construct} */
|
|
7223
7726
|
const blankLine = {
|
|
7224
7727
|
partial: true,
|
|
@@ -7269,6 +7772,15 @@ function tokenizeBlankLine(effects, ok$2, nok) {
|
|
|
7269
7772
|
|
|
7270
7773
|
//#endregion
|
|
7271
7774
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/block-quote.js
|
|
7775
|
+
/**
|
|
7776
|
+
* @import {
|
|
7777
|
+
* Construct,
|
|
7778
|
+
* Exiter,
|
|
7779
|
+
* State,
|
|
7780
|
+
* TokenizeContext,
|
|
7781
|
+
* Tokenizer
|
|
7782
|
+
* } from 'micromark-util-types'
|
|
7783
|
+
*/
|
|
7272
7784
|
/** @type {Construct} */
|
|
7273
7785
|
const blockQuote = {
|
|
7274
7786
|
continuation: { tokenize: tokenizeBlockQuoteContinuation },
|
|
@@ -7388,6 +7900,14 @@ function exit$1(effects) {
|
|
|
7388
7900
|
|
|
7389
7901
|
//#endregion
|
|
7390
7902
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-escape.js
|
|
7903
|
+
/**
|
|
7904
|
+
* @import {
|
|
7905
|
+
* Construct,
|
|
7906
|
+
* State,
|
|
7907
|
+
* TokenizeContext,
|
|
7908
|
+
* Tokenizer
|
|
7909
|
+
* } from 'micromark-util-types'
|
|
7910
|
+
*/
|
|
7391
7911
|
/** @type {Construct} */
|
|
7392
7912
|
const characterEscape = {
|
|
7393
7913
|
name: "characterEscape",
|
|
@@ -7441,6 +7961,15 @@ function tokenizeCharacterEscape(effects, ok$2, nok) {
|
|
|
7441
7961
|
|
|
7442
7962
|
//#endregion
|
|
7443
7963
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-reference.js
|
|
7964
|
+
/**
|
|
7965
|
+
* @import {
|
|
7966
|
+
* Code,
|
|
7967
|
+
* Construct,
|
|
7968
|
+
* State,
|
|
7969
|
+
* TokenizeContext,
|
|
7970
|
+
* Tokenizer
|
|
7971
|
+
* } from 'micromark-util-types'
|
|
7972
|
+
*/
|
|
7444
7973
|
/** @type {Construct} */
|
|
7445
7974
|
const characterReference = {
|
|
7446
7975
|
name: "characterReference",
|
|
@@ -7571,6 +8100,15 @@ function tokenizeCharacterReference(effects, ok$2, nok) {
|
|
|
7571
8100
|
|
|
7572
8101
|
//#endregion
|
|
7573
8102
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-fenced.js
|
|
8103
|
+
/**
|
|
8104
|
+
* @import {
|
|
8105
|
+
* Code,
|
|
8106
|
+
* Construct,
|
|
8107
|
+
* State,
|
|
8108
|
+
* TokenizeContext,
|
|
8109
|
+
* Tokenizer
|
|
8110
|
+
* } from 'micromark-util-types'
|
|
8111
|
+
*/
|
|
7574
8112
|
/** @type {Construct} */
|
|
7575
8113
|
const nonLazyContinuation = {
|
|
7576
8114
|
partial: true,
|
|
@@ -7978,6 +8516,14 @@ function tokenizeNonLazyContinuation(effects, ok$2, nok) {
|
|
|
7978
8516
|
|
|
7979
8517
|
//#endregion
|
|
7980
8518
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-indented.js
|
|
8519
|
+
/**
|
|
8520
|
+
* @import {
|
|
8521
|
+
* Construct,
|
|
8522
|
+
* State,
|
|
8523
|
+
* TokenizeContext,
|
|
8524
|
+
* Tokenizer
|
|
8525
|
+
* } from 'micromark-util-types'
|
|
8526
|
+
*/
|
|
7981
8527
|
/** @type {Construct} */
|
|
7982
8528
|
const codeIndented = {
|
|
7983
8529
|
name: "codeIndented",
|
|
@@ -8115,6 +8661,17 @@ function tokenizeFurtherStart(effects, ok$2, nok) {
|
|
|
8115
8661
|
|
|
8116
8662
|
//#endregion
|
|
8117
8663
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-text.js
|
|
8664
|
+
/**
|
|
8665
|
+
* @import {
|
|
8666
|
+
* Construct,
|
|
8667
|
+
* Previous,
|
|
8668
|
+
* Resolver,
|
|
8669
|
+
* State,
|
|
8670
|
+
* TokenizeContext,
|
|
8671
|
+
* Tokenizer,
|
|
8672
|
+
* Token
|
|
8673
|
+
* } from 'micromark-util-types'
|
|
8674
|
+
*/
|
|
8118
8675
|
/** @type {Construct} */
|
|
8119
8676
|
const codeText = {
|
|
8120
8677
|
name: "codeText",
|
|
@@ -8522,6 +9079,9 @@ function chunkedPush(list$3, right) {
|
|
|
8522
9079
|
//#endregion
|
|
8523
9080
|
//#region node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/index.js
|
|
8524
9081
|
/**
|
|
9082
|
+
* @import {Chunk, Event, Token} from 'micromark-util-types'
|
|
9083
|
+
*/
|
|
9084
|
+
/**
|
|
8525
9085
|
* Tokenize subcontent.
|
|
8526
9086
|
*
|
|
8527
9087
|
* @param {Array<Event>} eventsArray
|
|
@@ -8675,6 +9235,16 @@ function subcontent(events, eventIndex) {
|
|
|
8675
9235
|
//#endregion
|
|
8676
9236
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/content.js
|
|
8677
9237
|
/**
|
|
9238
|
+
* @import {
|
|
9239
|
+
* Construct,
|
|
9240
|
+
* Resolver,
|
|
9241
|
+
* State,
|
|
9242
|
+
* TokenizeContext,
|
|
9243
|
+
* Tokenizer,
|
|
9244
|
+
* Token
|
|
9245
|
+
* } from 'micromark-util-types'
|
|
9246
|
+
*/
|
|
9247
|
+
/**
|
|
8678
9248
|
* No name because it must not be turned off.
|
|
8679
9249
|
* @type {Construct}
|
|
8680
9250
|
*/
|
|
@@ -8799,6 +9369,9 @@ function tokenizeContinuation(effects, ok$2, nok) {
|
|
|
8799
9369
|
//#endregion
|
|
8800
9370
|
//#region node_modules/.pnpm/micromark-factory-destination@2.0.1/node_modules/micromark-factory-destination/index.js
|
|
8801
9371
|
/**
|
|
9372
|
+
* @import {Effects, State, TokenType} from 'micromark-util-types'
|
|
9373
|
+
*/
|
|
9374
|
+
/**
|
|
8802
9375
|
* Parse destinations.
|
|
8803
9376
|
*
|
|
8804
9377
|
* ###### Examples
|
|
@@ -8981,6 +9554,14 @@ function factoryDestination(effects, ok$2, nok, type, literalType, literalMarker
|
|
|
8981
9554
|
//#endregion
|
|
8982
9555
|
//#region node_modules/.pnpm/micromark-factory-label@2.0.1/node_modules/micromark-factory-label/index.js
|
|
8983
9556
|
/**
|
|
9557
|
+
* @import {
|
|
9558
|
+
* Effects,
|
|
9559
|
+
* State,
|
|
9560
|
+
* TokenizeContext,
|
|
9561
|
+
* TokenType
|
|
9562
|
+
* } from 'micromark-util-types'
|
|
9563
|
+
*/
|
|
9564
|
+
/**
|
|
8984
9565
|
* Parse labels.
|
|
8985
9566
|
*
|
|
8986
9567
|
* > 👉 **Note**: labels in markdown are capped at 999 characters in the string.
|
|
@@ -9106,6 +9687,14 @@ function factoryLabel(effects, ok$2, nok, type, markerType, stringType) {
|
|
|
9106
9687
|
//#endregion
|
|
9107
9688
|
//#region node_modules/.pnpm/micromark-factory-title@2.0.1/node_modules/micromark-factory-title/index.js
|
|
9108
9689
|
/**
|
|
9690
|
+
* @import {
|
|
9691
|
+
* Code,
|
|
9692
|
+
* Effects,
|
|
9693
|
+
* State,
|
|
9694
|
+
* TokenType
|
|
9695
|
+
* } from 'micromark-util-types'
|
|
9696
|
+
*/
|
|
9697
|
+
/**
|
|
9109
9698
|
* Parse titles.
|
|
9110
9699
|
*
|
|
9111
9700
|
* ###### Examples
|
|
@@ -9244,6 +9833,9 @@ function factoryTitle(effects, ok$2, nok, type, markerType, stringType) {
|
|
|
9244
9833
|
//#endregion
|
|
9245
9834
|
//#region node_modules/.pnpm/micromark-factory-whitespace@2.0.1/node_modules/micromark-factory-whitespace/index.js
|
|
9246
9835
|
/**
|
|
9836
|
+
* @import {Effects, State} from 'micromark-util-types'
|
|
9837
|
+
*/
|
|
9838
|
+
/**
|
|
9247
9839
|
* Parse spaces and tabs.
|
|
9248
9840
|
*
|
|
9249
9841
|
* There is no `nok` parameter:
|
|
@@ -9281,6 +9873,14 @@ function factoryWhitespace(effects, ok$2) {
|
|
|
9281
9873
|
|
|
9282
9874
|
//#endregion
|
|
9283
9875
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/definition.js
|
|
9876
|
+
/**
|
|
9877
|
+
* @import {
|
|
9878
|
+
* Construct,
|
|
9879
|
+
* State,
|
|
9880
|
+
* TokenizeContext,
|
|
9881
|
+
* Tokenizer
|
|
9882
|
+
* } from 'micromark-util-types'
|
|
9883
|
+
*/
|
|
9284
9884
|
/** @type {Construct} */
|
|
9285
9885
|
const definition$1 = {
|
|
9286
9886
|
name: "definition",
|
|
@@ -9489,6 +10089,14 @@ function tokenizeTitleBefore(effects, ok$2, nok) {
|
|
|
9489
10089
|
|
|
9490
10090
|
//#endregion
|
|
9491
10091
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/hard-break-escape.js
|
|
10092
|
+
/**
|
|
10093
|
+
* @import {
|
|
10094
|
+
* Construct,
|
|
10095
|
+
* State,
|
|
10096
|
+
* TokenizeContext,
|
|
10097
|
+
* Tokenizer
|
|
10098
|
+
* } from 'micromark-util-types'
|
|
10099
|
+
*/
|
|
9492
10100
|
/** @type {Construct} */
|
|
9493
10101
|
const hardBreakEscape = {
|
|
9494
10102
|
name: "hardBreakEscape",
|
|
@@ -9539,6 +10147,16 @@ function tokenizeHardBreakEscape(effects, ok$2, nok) {
|
|
|
9539
10147
|
|
|
9540
10148
|
//#endregion
|
|
9541
10149
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/heading-atx.js
|
|
10150
|
+
/**
|
|
10151
|
+
* @import {
|
|
10152
|
+
* Construct,
|
|
10153
|
+
* Resolver,
|
|
10154
|
+
* State,
|
|
10155
|
+
* TokenizeContext,
|
|
10156
|
+
* Tokenizer,
|
|
10157
|
+
* Token
|
|
10158
|
+
* } from 'micromark-util-types'
|
|
10159
|
+
*/
|
|
9542
10160
|
/** @type {Construct} */
|
|
9543
10161
|
const headingAtx = {
|
|
9544
10162
|
name: "headingAtx",
|
|
@@ -9815,6 +10433,16 @@ const htmlRawNames = [
|
|
|
9815
10433
|
|
|
9816
10434
|
//#endregion
|
|
9817
10435
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-flow.js
|
|
10436
|
+
/**
|
|
10437
|
+
* @import {
|
|
10438
|
+
* Code,
|
|
10439
|
+
* Construct,
|
|
10440
|
+
* Resolver,
|
|
10441
|
+
* State,
|
|
10442
|
+
* TokenizeContext,
|
|
10443
|
+
* Tokenizer
|
|
10444
|
+
* } from 'micromark-util-types'
|
|
10445
|
+
*/
|
|
9818
10446
|
/** @type {Construct} */
|
|
9819
10447
|
const htmlFlow = {
|
|
9820
10448
|
concrete: true,
|
|
@@ -10579,6 +11207,15 @@ function tokenizeBlankLineBefore(effects, ok$2, nok) {
|
|
|
10579
11207
|
|
|
10580
11208
|
//#endregion
|
|
10581
11209
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-text.js
|
|
11210
|
+
/**
|
|
11211
|
+
* @import {
|
|
11212
|
+
* Code,
|
|
11213
|
+
* Construct,
|
|
11214
|
+
* State,
|
|
11215
|
+
* TokenizeContext,
|
|
11216
|
+
* Tokenizer
|
|
11217
|
+
* } from 'micromark-util-types'
|
|
11218
|
+
*/
|
|
10582
11219
|
/** @type {Construct} */
|
|
10583
11220
|
const htmlText = {
|
|
10584
11221
|
name: "htmlText",
|
|
@@ -11185,6 +11822,17 @@ function tokenizeHtmlText(effects, ok$2, nok) {
|
|
|
11185
11822
|
|
|
11186
11823
|
//#endregion
|
|
11187
11824
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-end.js
|
|
11825
|
+
/**
|
|
11826
|
+
* @import {
|
|
11827
|
+
* Construct,
|
|
11828
|
+
* Event,
|
|
11829
|
+
* Resolver,
|
|
11830
|
+
* State,
|
|
11831
|
+
* TokenizeContext,
|
|
11832
|
+
* Tokenizer,
|
|
11833
|
+
* Token
|
|
11834
|
+
* } from 'micromark-util-types'
|
|
11835
|
+
*/
|
|
11188
11836
|
/** @type {Construct} */
|
|
11189
11837
|
const labelEnd = {
|
|
11190
11838
|
name: "labelEnd",
|
|
@@ -11645,6 +12293,14 @@ function tokenizeReferenceCollapsed(effects, ok$2, nok) {
|
|
|
11645
12293
|
|
|
11646
12294
|
//#endregion
|
|
11647
12295
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-image.js
|
|
12296
|
+
/**
|
|
12297
|
+
* @import {
|
|
12298
|
+
* Construct,
|
|
12299
|
+
* State,
|
|
12300
|
+
* TokenizeContext,
|
|
12301
|
+
* Tokenizer
|
|
12302
|
+
* } from 'micromark-util-types'
|
|
12303
|
+
*/
|
|
11648
12304
|
/** @type {Construct} */
|
|
11649
12305
|
const labelStartImage = {
|
|
11650
12306
|
name: "labelStartImage",
|
|
@@ -11731,6 +12387,14 @@ function tokenizeLabelStartImage(effects, ok$2, nok) {
|
|
|
11731
12387
|
|
|
11732
12388
|
//#endregion
|
|
11733
12389
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-link.js
|
|
12390
|
+
/**
|
|
12391
|
+
* @import {
|
|
12392
|
+
* Construct,
|
|
12393
|
+
* State,
|
|
12394
|
+
* TokenizeContext,
|
|
12395
|
+
* Tokenizer
|
|
12396
|
+
* } from 'micromark-util-types'
|
|
12397
|
+
*/
|
|
11734
12398
|
/** @type {Construct} */
|
|
11735
12399
|
const labelStartLink = {
|
|
11736
12400
|
name: "labelStartLink",
|
|
@@ -11772,6 +12436,14 @@ function tokenizeLabelStartLink(effects, ok$2, nok) {
|
|
|
11772
12436
|
|
|
11773
12437
|
//#endregion
|
|
11774
12438
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/line-ending.js
|
|
12439
|
+
/**
|
|
12440
|
+
* @import {
|
|
12441
|
+
* Construct,
|
|
12442
|
+
* State,
|
|
12443
|
+
* TokenizeContext,
|
|
12444
|
+
* Tokenizer
|
|
12445
|
+
* } from 'micromark-util-types'
|
|
12446
|
+
*/
|
|
11775
12447
|
/** @type {Construct} */
|
|
11776
12448
|
const lineEnding = {
|
|
11777
12449
|
name: "lineEnding",
|
|
@@ -11795,6 +12467,15 @@ function tokenizeLineEnding(effects, ok$2) {
|
|
|
11795
12467
|
|
|
11796
12468
|
//#endregion
|
|
11797
12469
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/thematic-break.js
|
|
12470
|
+
/**
|
|
12471
|
+
* @import {
|
|
12472
|
+
* Code,
|
|
12473
|
+
* Construct,
|
|
12474
|
+
* State,
|
|
12475
|
+
* TokenizeContext,
|
|
12476
|
+
* Tokenizer
|
|
12477
|
+
* } from 'micromark-util-types'
|
|
12478
|
+
*/
|
|
11798
12479
|
/** @type {Construct} */
|
|
11799
12480
|
const thematicBreak$1 = {
|
|
11800
12481
|
name: "thematicBreak",
|
|
@@ -11882,6 +12563,16 @@ function tokenizeThematicBreak(effects, ok$2, nok) {
|
|
|
11882
12563
|
|
|
11883
12564
|
//#endregion
|
|
11884
12565
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/list.js
|
|
12566
|
+
/**
|
|
12567
|
+
* @import {
|
|
12568
|
+
* Code,
|
|
12569
|
+
* Construct,
|
|
12570
|
+
* Exiter,
|
|
12571
|
+
* State,
|
|
12572
|
+
* TokenizeContext,
|
|
12573
|
+
* Tokenizer
|
|
12574
|
+
* } from 'micromark-util-types'
|
|
12575
|
+
*/
|
|
11885
12576
|
/** @type {Construct} */
|
|
11886
12577
|
const list$2 = {
|
|
11887
12578
|
continuation: { tokenize: tokenizeListContinuation },
|
|
@@ -12045,6 +12736,16 @@ function tokenizeListItemPrefixWhitespace(effects, ok$2, nok) {
|
|
|
12045
12736
|
|
|
12046
12737
|
//#endregion
|
|
12047
12738
|
//#region node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/setext-underline.js
|
|
12739
|
+
/**
|
|
12740
|
+
* @import {
|
|
12741
|
+
* Code,
|
|
12742
|
+
* Construct,
|
|
12743
|
+
* Resolver,
|
|
12744
|
+
* State,
|
|
12745
|
+
* TokenizeContext,
|
|
12746
|
+
* Tokenizer
|
|
12747
|
+
* } from 'micromark-util-types'
|
|
12748
|
+
*/
|
|
12048
12749
|
/** @type {Construct} */
|
|
12049
12750
|
const setextUnderline = {
|
|
12050
12751
|
name: "setextUnderline",
|
|
@@ -12188,6 +12889,14 @@ function tokenizeSetextUnderline(effects, ok$2, nok) {
|
|
|
12188
12889
|
|
|
12189
12890
|
//#endregion
|
|
12190
12891
|
//#region node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/flow.js
|
|
12892
|
+
/**
|
|
12893
|
+
* @import {
|
|
12894
|
+
* InitialConstruct,
|
|
12895
|
+
* Initializer,
|
|
12896
|
+
* State,
|
|
12897
|
+
* TokenizeContext
|
|
12898
|
+
* } from 'micromark-util-types'
|
|
12899
|
+
*/
|
|
12191
12900
|
/** @type {InitialConstruct} */
|
|
12192
12901
|
const flow = { tokenize: initializeFlow };
|
|
12193
12902
|
/**
|
|
@@ -12406,6 +13115,9 @@ function resolveAllLineSuffixes(events, context) {
|
|
|
12406
13115
|
|
|
12407
13116
|
//#endregion
|
|
12408
13117
|
//#region node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/constructs.js
|
|
13118
|
+
/**
|
|
13119
|
+
* @import {Extension} from 'micromark-util-types'
|
|
13120
|
+
*/
|
|
12409
13121
|
var constructs_exports = /* @__PURE__ */ __export({
|
|
12410
13122
|
attentionMarkers: () => attentionMarkers,
|
|
12411
13123
|
contentInitial: () => contentInitial,
|
|
@@ -12483,6 +13195,43 @@ const disable = { null: [] };
|
|
|
12483
13195
|
//#endregion
|
|
12484
13196
|
//#region node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/create-tokenizer.js
|
|
12485
13197
|
/**
|
|
13198
|
+
* @import {
|
|
13199
|
+
* Chunk,
|
|
13200
|
+
* Code,
|
|
13201
|
+
* ConstructRecord,
|
|
13202
|
+
* Construct,
|
|
13203
|
+
* Effects,
|
|
13204
|
+
* InitialConstruct,
|
|
13205
|
+
* ParseContext,
|
|
13206
|
+
* Point,
|
|
13207
|
+
* State,
|
|
13208
|
+
* TokenizeContext,
|
|
13209
|
+
* Token
|
|
13210
|
+
* } from 'micromark-util-types'
|
|
13211
|
+
*/
|
|
13212
|
+
/**
|
|
13213
|
+
* @callback Restore
|
|
13214
|
+
* Restore the state.
|
|
13215
|
+
* @returns {undefined}
|
|
13216
|
+
* Nothing.
|
|
13217
|
+
*
|
|
13218
|
+
* @typedef Info
|
|
13219
|
+
* Info.
|
|
13220
|
+
* @property {Restore} restore
|
|
13221
|
+
* Restore.
|
|
13222
|
+
* @property {number} from
|
|
13223
|
+
* From.
|
|
13224
|
+
*
|
|
13225
|
+
* @callback ReturnHandle
|
|
13226
|
+
* Handle a successful run.
|
|
13227
|
+
* @param {Construct} construct
|
|
13228
|
+
* Construct.
|
|
13229
|
+
* @param {Info} info
|
|
13230
|
+
* Info.
|
|
13231
|
+
* @returns {undefined}
|
|
13232
|
+
* Nothing.
|
|
13233
|
+
*/
|
|
13234
|
+
/**
|
|
12486
13235
|
* Create a tokenizer.
|
|
12487
13236
|
* Tokenizers deal with one type of data (e.g., containers, flow, text).
|
|
12488
13237
|
* The parser is the object dealing with it all.
|
|
@@ -12916,6 +13665,15 @@ function serializeChunks(chunks, expandTabs) {
|
|
|
12916
13665
|
//#endregion
|
|
12917
13666
|
//#region node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/parse.js
|
|
12918
13667
|
/**
|
|
13668
|
+
* @import {
|
|
13669
|
+
* Create,
|
|
13670
|
+
* FullNormalizedExtension,
|
|
13671
|
+
* InitialConstruct,
|
|
13672
|
+
* ParseContext,
|
|
13673
|
+
* ParseOptions
|
|
13674
|
+
* } from 'micromark-util-types'
|
|
13675
|
+
*/
|
|
13676
|
+
/**
|
|
12919
13677
|
* @param {ParseOptions | null | undefined} [options]
|
|
12920
13678
|
* Configuration (optional).
|
|
12921
13679
|
* @returns {ParseContext}
|
|
@@ -12952,6 +13710,9 @@ function parse$3(options) {
|
|
|
12952
13710
|
//#endregion
|
|
12953
13711
|
//#region node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/postprocess.js
|
|
12954
13712
|
/**
|
|
13713
|
+
* @import {Event} from 'micromark-util-types'
|
|
13714
|
+
*/
|
|
13715
|
+
/**
|
|
12955
13716
|
* @param {Array<Event>} events
|
|
12956
13717
|
* Events.
|
|
12957
13718
|
* @returns {Array<Event>}
|
|
@@ -13104,6 +13865,46 @@ function decode($0, $1, $2) {
|
|
|
13104
13865
|
|
|
13105
13866
|
//#endregion
|
|
13106
13867
|
//#region node_modules/.pnpm/mdast-util-from-markdown@2.0.2/node_modules/mdast-util-from-markdown/lib/index.js
|
|
13868
|
+
/**
|
|
13869
|
+
* @import {
|
|
13870
|
+
* Break,
|
|
13871
|
+
* Blockquote,
|
|
13872
|
+
* Code,
|
|
13873
|
+
* Definition,
|
|
13874
|
+
* Emphasis,
|
|
13875
|
+
* Heading,
|
|
13876
|
+
* Html,
|
|
13877
|
+
* Image,
|
|
13878
|
+
* InlineCode,
|
|
13879
|
+
* Link,
|
|
13880
|
+
* ListItem,
|
|
13881
|
+
* List,
|
|
13882
|
+
* Nodes,
|
|
13883
|
+
* Paragraph,
|
|
13884
|
+
* PhrasingContent,
|
|
13885
|
+
* ReferenceType,
|
|
13886
|
+
* Root,
|
|
13887
|
+
* Strong,
|
|
13888
|
+
* Text,
|
|
13889
|
+
* ThematicBreak
|
|
13890
|
+
* } from 'mdast'
|
|
13891
|
+
* @import {
|
|
13892
|
+
* Encoding,
|
|
13893
|
+
* Event,
|
|
13894
|
+
* Token,
|
|
13895
|
+
* Value
|
|
13896
|
+
* } from 'micromark-util-types'
|
|
13897
|
+
* @import {Point} from 'unist'
|
|
13898
|
+
* @import {
|
|
13899
|
+
* CompileContext,
|
|
13900
|
+
* CompileData,
|
|
13901
|
+
* Config,
|
|
13902
|
+
* Extension,
|
|
13903
|
+
* Handle,
|
|
13904
|
+
* OnEnterError,
|
|
13905
|
+
* Options
|
|
13906
|
+
* } from './types.js'
|
|
13907
|
+
*/
|
|
13107
13908
|
const own$3 = {}.hasOwnProperty;
|
|
13108
13909
|
/**
|
|
13109
13910
|
* Turn markdown into a syntax tree.
|
|
@@ -14032,6 +14833,15 @@ function defaultOnError(left, right) {
|
|
|
14032
14833
|
//#endregion
|
|
14033
14834
|
//#region node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/lib/index.js
|
|
14034
14835
|
/**
|
|
14836
|
+
* @typedef {import('mdast').Root} Root
|
|
14837
|
+
* @typedef {import('mdast-util-from-markdown').Options} FromMarkdownOptions
|
|
14838
|
+
* @typedef {import('unified').Parser<Root>} Parser
|
|
14839
|
+
* @typedef {import('unified').Processor<Root>} Processor
|
|
14840
|
+
*/
|
|
14841
|
+
/**
|
|
14842
|
+
* @typedef {Omit<FromMarkdownOptions, 'extensions' | 'mdastExtensions'>} Options
|
|
14843
|
+
*/
|
|
14844
|
+
/**
|
|
14035
14845
|
* Aadd support for parsing from markdown.
|
|
14036
14846
|
*
|
|
14037
14847
|
* @param {Readonly<Options> | null | undefined} [options]
|
|
@@ -14267,6 +15077,10 @@ function listInScope(stack$1, list$3, none) {
|
|
|
14267
15077
|
//#endregion
|
|
14268
15078
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.js
|
|
14269
15079
|
/**
|
|
15080
|
+
* @import {Break, Parents} from 'mdast'
|
|
15081
|
+
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
15082
|
+
*/
|
|
15083
|
+
/**
|
|
14270
15084
|
* @param {Break} _
|
|
14271
15085
|
* @param {Parents | undefined} _1
|
|
14272
15086
|
* @param {State} state
|
|
@@ -14341,6 +15155,10 @@ function checkFence(state) {
|
|
|
14341
15155
|
//#endregion
|
|
14342
15156
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.js
|
|
14343
15157
|
/**
|
|
15158
|
+
* @import {Info, Map, State} from 'mdast-util-to-markdown'
|
|
15159
|
+
* @import {Code, Parents} from 'mdast'
|
|
15160
|
+
*/
|
|
15161
|
+
/**
|
|
14344
15162
|
* @param {Code} node
|
|
14345
15163
|
* @param {Parents | undefined} _
|
|
14346
15164
|
* @param {State} state
|
|
@@ -14411,6 +15229,10 @@ function checkQuote(state) {
|
|
|
14411
15229
|
//#endregion
|
|
14412
15230
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.js
|
|
14413
15231
|
/**
|
|
15232
|
+
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
15233
|
+
* @import {Definition, Parents} from 'mdast'
|
|
15234
|
+
*/
|
|
15235
|
+
/**
|
|
14414
15236
|
* @param {Definition} node
|
|
14415
15237
|
* @param {Parents | undefined} _
|
|
14416
15238
|
* @param {State} state
|
|
@@ -14496,6 +15318,9 @@ function encodeCharacterReference(code$2) {
|
|
|
14496
15318
|
//#endregion
|
|
14497
15319
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-info.js
|
|
14498
15320
|
/**
|
|
15321
|
+
* @import {EncodeSides} from '../types.js'
|
|
15322
|
+
*/
|
|
15323
|
+
/**
|
|
14499
15324
|
* Check whether to encode (as a character reference) the characters
|
|
14500
15325
|
* surrounding an attention run.
|
|
14501
15326
|
*
|
|
@@ -14565,6 +15390,10 @@ function encodeInfo(outside, inside, marker) {
|
|
|
14565
15390
|
|
|
14566
15391
|
//#endregion
|
|
14567
15392
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js
|
|
15393
|
+
/**
|
|
15394
|
+
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
15395
|
+
* @import {Emphasis, Parents} from 'mdast'
|
|
15396
|
+
*/
|
|
14568
15397
|
emphasis.peek = emphasisPeek;
|
|
14569
15398
|
/**
|
|
14570
15399
|
* @param {Emphasis} node
|
|
@@ -14610,6 +15439,10 @@ function emphasisPeek(_, _1, state) {
|
|
|
14610
15439
|
//#endregion
|
|
14611
15440
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js
|
|
14612
15441
|
/**
|
|
15442
|
+
* @import {State} from 'mdast-util-to-markdown'
|
|
15443
|
+
* @import {Heading} from 'mdast'
|
|
15444
|
+
*/
|
|
15445
|
+
/**
|
|
14613
15446
|
* @param {Heading} node
|
|
14614
15447
|
* @param {State} state
|
|
14615
15448
|
* @returns {boolean}
|
|
@@ -14628,6 +15461,10 @@ function formatHeadingAsSetext(node$1, state) {
|
|
|
14628
15461
|
//#endregion
|
|
14629
15462
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.js
|
|
14630
15463
|
/**
|
|
15464
|
+
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
15465
|
+
* @import {Heading, Parents} from 'mdast'
|
|
15466
|
+
*/
|
|
15467
|
+
/**
|
|
14631
15468
|
* @param {Heading} node
|
|
14632
15469
|
* @param {Parents | undefined} _
|
|
14633
15470
|
* @param {State} state
|
|
@@ -14688,6 +15525,10 @@ function htmlPeek() {
|
|
|
14688
15525
|
|
|
14689
15526
|
//#endregion
|
|
14690
15527
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.js
|
|
15528
|
+
/**
|
|
15529
|
+
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
15530
|
+
* @import {Image, Parents} from 'mdast'
|
|
15531
|
+
*/
|
|
14691
15532
|
image.peek = imagePeek;
|
|
14692
15533
|
/**
|
|
14693
15534
|
* @param {Image} node
|
|
@@ -14843,6 +15684,10 @@ function inlineCodePeek() {
|
|
|
14843
15684
|
//#endregion
|
|
14844
15685
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js
|
|
14845
15686
|
/**
|
|
15687
|
+
* @import {State} from 'mdast-util-to-markdown'
|
|
15688
|
+
* @import {Link} from 'mdast'
|
|
15689
|
+
*/
|
|
15690
|
+
/**
|
|
14846
15691
|
* @param {Link} node
|
|
14847
15692
|
* @param {State} state
|
|
14848
15693
|
* @returns {boolean}
|
|
@@ -14854,6 +15699,11 @@ function formatLinkAsAutolink(node$1, state) {
|
|
|
14854
15699
|
|
|
14855
15700
|
//#endregion
|
|
14856
15701
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.js
|
|
15702
|
+
/**
|
|
15703
|
+
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
15704
|
+
* @import {Link, Parents} from 'mdast'
|
|
15705
|
+
* @import {Exit} from '../types.js'
|
|
15706
|
+
*/
|
|
14857
15707
|
link.peek = linkPeek;
|
|
14858
15708
|
/**
|
|
14859
15709
|
* @param {Link} node
|
|
@@ -15006,6 +15856,9 @@ function checkBullet(state) {
|
|
|
15006
15856
|
//#endregion
|
|
15007
15857
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js
|
|
15008
15858
|
/**
|
|
15859
|
+
* @import {Options, State} from 'mdast-util-to-markdown'
|
|
15860
|
+
*/
|
|
15861
|
+
/**
|
|
15009
15862
|
* @param {State} state
|
|
15010
15863
|
* @returns {Exclude<Options['bullet'], null | undefined>}
|
|
15011
15864
|
*/
|
|
@@ -15051,6 +15904,10 @@ function checkRule(state) {
|
|
|
15051
15904
|
//#endregion
|
|
15052
15905
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.js
|
|
15053
15906
|
/**
|
|
15907
|
+
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
15908
|
+
* @import {List, Parents} from 'mdast'
|
|
15909
|
+
*/
|
|
15910
|
+
/**
|
|
15054
15911
|
* @param {List} node
|
|
15055
15912
|
* @param {Parents | undefined} parent
|
|
15056
15913
|
* @param {State} state
|
|
@@ -15106,6 +15963,10 @@ function checkListItemIndent(state) {
|
|
|
15106
15963
|
//#endregion
|
|
15107
15964
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.js
|
|
15108
15965
|
/**
|
|
15966
|
+
* @import {Info, Map, State} from 'mdast-util-to-markdown'
|
|
15967
|
+
* @import {ListItem, Parents} from 'mdast'
|
|
15968
|
+
*/
|
|
15969
|
+
/**
|
|
15109
15970
|
* @param {ListItem} node
|
|
15110
15971
|
* @param {Parents | undefined} parent
|
|
15111
15972
|
* @param {State} state
|
|
@@ -15157,6 +16018,10 @@ function paragraph(node$1, _, state, info$1) {
|
|
|
15157
16018
|
//#endregion
|
|
15158
16019
|
//#region node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.js
|
|
15159
16020
|
/**
|
|
16021
|
+
* @typedef {import('mdast').Html} Html
|
|
16022
|
+
* @typedef {import('mdast').PhrasingContent} PhrasingContent
|
|
16023
|
+
*/
|
|
16024
|
+
/**
|
|
15160
16025
|
* Check if the given value is *phrasing content*.
|
|
15161
16026
|
*
|
|
15162
16027
|
* > 👉 **Note**: Excludes `html`, which can be both phrasing or flow.
|
|
@@ -15188,6 +16053,10 @@ const phrasing = convert([
|
|
|
15188
16053
|
//#endregion
|
|
15189
16054
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.js
|
|
15190
16055
|
/**
|
|
16056
|
+
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
16057
|
+
* @import {Parents, Root} from 'mdast'
|
|
16058
|
+
*/
|
|
16059
|
+
/**
|
|
15191
16060
|
* @param {Root} node
|
|
15192
16061
|
* @param {Parents | undefined} _
|
|
15193
16062
|
* @param {State} state
|
|
@@ -15217,6 +16086,10 @@ function checkStrong(state) {
|
|
|
15217
16086
|
|
|
15218
16087
|
//#endregion
|
|
15219
16088
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.js
|
|
16089
|
+
/**
|
|
16090
|
+
* @import {Info, State} from 'mdast-util-to-markdown'
|
|
16091
|
+
* @import {Parents, Strong} from 'mdast'
|
|
16092
|
+
*/
|
|
15220
16093
|
strong.peek = strongPeek;
|
|
15221
16094
|
/**
|
|
15222
16095
|
* @param {Strong} node
|
|
@@ -15294,6 +16167,10 @@ function checkRuleRepetition(state) {
|
|
|
15294
16167
|
//#endregion
|
|
15295
16168
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js
|
|
15296
16169
|
/**
|
|
16170
|
+
* @import {State} from 'mdast-util-to-markdown'
|
|
16171
|
+
* @import {Parents, ThematicBreak} from 'mdast'
|
|
16172
|
+
*/
|
|
16173
|
+
/**
|
|
15297
16174
|
* @param {ThematicBreak} _
|
|
15298
16175
|
* @param {Parents | undefined} _1
|
|
15299
16176
|
* @param {State} state
|
|
@@ -15334,6 +16211,9 @@ const handle = {
|
|
|
15334
16211
|
|
|
15335
16212
|
//#endregion
|
|
15336
16213
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/join.js
|
|
16214
|
+
/**
|
|
16215
|
+
* @import {Join} from 'mdast-util-to-markdown'
|
|
16216
|
+
*/
|
|
15337
16217
|
/** @type {Array<Join>} */
|
|
15338
16218
|
const join = [joinDefaults];
|
|
15339
16219
|
/** @type {Join} */
|
|
@@ -15571,6 +16451,9 @@ const unsafe = [
|
|
|
15571
16451
|
//#endregion
|
|
15572
16452
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/association.js
|
|
15573
16453
|
/**
|
|
16454
|
+
* @import {AssociationId} from '../types.js'
|
|
16455
|
+
*/
|
|
16456
|
+
/**
|
|
15574
16457
|
* Get an identifier from an association to match it to others.
|
|
15575
16458
|
*
|
|
15576
16459
|
* Associations are nodes that match to something else through an ID:
|
|
@@ -15614,6 +16497,10 @@ function compilePattern(pattern) {
|
|
|
15614
16497
|
//#endregion
|
|
15615
16498
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js
|
|
15616
16499
|
/**
|
|
16500
|
+
* @import {Handle, Info, State} from 'mdast-util-to-markdown'
|
|
16501
|
+
* @import {PhrasingParents} from '../types.js'
|
|
16502
|
+
*/
|
|
16503
|
+
/**
|
|
15617
16504
|
* Serialize the children of a parent that contains phrasing children.
|
|
15618
16505
|
*
|
|
15619
16506
|
* These children will be joined flush together.
|
|
@@ -15772,6 +16659,9 @@ function indentLines(value, map$4) {
|
|
|
15772
16659
|
//#endregion
|
|
15773
16660
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/safe.js
|
|
15774
16661
|
/**
|
|
16662
|
+
* @import {SafeConfig, State} from 'mdast-util-to-markdown'
|
|
16663
|
+
*/
|
|
16664
|
+
/**
|
|
15775
16665
|
* Make a string safe for embedding in markdown constructs.
|
|
15776
16666
|
*
|
|
15777
16667
|
* In markdown, almost all punctuation characters can, in certain cases,
|
|
@@ -15942,6 +16832,11 @@ function track(config) {
|
|
|
15942
16832
|
//#endregion
|
|
15943
16833
|
//#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/index.js
|
|
15944
16834
|
/**
|
|
16835
|
+
* @import {Info, Join, Options, SafeConfig, State} from 'mdast-util-to-markdown'
|
|
16836
|
+
* @import {Nodes} from 'mdast'
|
|
16837
|
+
* @import {Enter, FlowParents, PhrasingParents, TrackFields} from './types.js'
|
|
16838
|
+
*/
|
|
16839
|
+
/**
|
|
15945
16840
|
* Turn an mdast syntax tree into markdown.
|
|
15946
16841
|
*
|
|
15947
16842
|
* @param {Nodes} tree
|
|
@@ -16087,6 +16982,15 @@ function safeBound(value, config) {
|
|
|
16087
16982
|
//#endregion
|
|
16088
16983
|
//#region node_modules/.pnpm/remark-stringify@11.0.0/node_modules/remark-stringify/lib/index.js
|
|
16089
16984
|
/**
|
|
16985
|
+
* @typedef {import('mdast').Root} Root
|
|
16986
|
+
* @typedef {import('mdast-util-to-markdown').Options} ToMarkdownOptions
|
|
16987
|
+
* @typedef {import('unified').Compiler<Root, string>} Compiler
|
|
16988
|
+
* @typedef {import('unified').Processor<undefined, undefined, undefined, Root, string>} Processor
|
|
16989
|
+
*/
|
|
16990
|
+
/**
|
|
16991
|
+
* @typedef {Omit<ToMarkdownOptions, 'extensions'>} Options
|
|
16992
|
+
*/
|
|
16993
|
+
/**
|
|
16090
16994
|
* Add support for serializing to markdown.
|
|
16091
16995
|
*
|
|
16092
16996
|
* @param {Readonly<Options> | null | undefined} [options]
|
|
@@ -16156,6 +17060,61 @@ function escapeStringRegexp(string$2) {
|
|
|
16156
17060
|
//#endregion
|
|
16157
17061
|
//#region node_modules/.pnpm/mdast-util-find-and-replace@3.0.2/node_modules/mdast-util-find-and-replace/lib/index.js
|
|
16158
17062
|
/**
|
|
17063
|
+
* @import {Nodes, Parents, PhrasingContent, Root, Text} from 'mdast'
|
|
17064
|
+
* @import {BuildVisitor, Test, VisitorResult} from 'unist-util-visit-parents'
|
|
17065
|
+
*/
|
|
17066
|
+
/**
|
|
17067
|
+
* @typedef RegExpMatchObject
|
|
17068
|
+
* Info on the match.
|
|
17069
|
+
* @property {number} index
|
|
17070
|
+
* The index of the search at which the result was found.
|
|
17071
|
+
* @property {string} input
|
|
17072
|
+
* A copy of the search string in the text node.
|
|
17073
|
+
* @property {[...Array<Parents>, Text]} stack
|
|
17074
|
+
* All ancestors of the text node, where the last node is the text itself.
|
|
17075
|
+
*
|
|
17076
|
+
* @typedef {RegExp | string} Find
|
|
17077
|
+
* Pattern to find.
|
|
17078
|
+
*
|
|
17079
|
+
* Strings are escaped and then turned into global expressions.
|
|
17080
|
+
*
|
|
17081
|
+
* @typedef {Array<FindAndReplaceTuple>} FindAndReplaceList
|
|
17082
|
+
* Several find and replaces, in array form.
|
|
17083
|
+
*
|
|
17084
|
+
* @typedef {[Find, Replace?]} FindAndReplaceTuple
|
|
17085
|
+
* Find and replace in tuple form.
|
|
17086
|
+
*
|
|
17087
|
+
* @typedef {ReplaceFunction | string | null | undefined} Replace
|
|
17088
|
+
* Thing to replace with.
|
|
17089
|
+
*
|
|
17090
|
+
* @callback ReplaceFunction
|
|
17091
|
+
* Callback called when a search matches.
|
|
17092
|
+
* @param {...any} parameters
|
|
17093
|
+
* The parameters are the result of corresponding search expression:
|
|
17094
|
+
*
|
|
17095
|
+
* * `value` (`string`) — whole match
|
|
17096
|
+
* * `...capture` (`Array<string>`) — matches from regex capture groups
|
|
17097
|
+
* * `match` (`RegExpMatchObject`) — info on the match
|
|
17098
|
+
* @returns {Array<PhrasingContent> | PhrasingContent | string | false | null | undefined}
|
|
17099
|
+
* Thing to replace with.
|
|
17100
|
+
*
|
|
17101
|
+
* * when `null`, `undefined`, `''`, remove the match
|
|
17102
|
+
* * …or when `false`, do not replace at all
|
|
17103
|
+
* * …or when `string`, replace with a text node of that value
|
|
17104
|
+
* * …or when `Node` or `Array<Node>`, replace with those nodes
|
|
17105
|
+
*
|
|
17106
|
+
* @typedef {[RegExp, ReplaceFunction]} Pair
|
|
17107
|
+
* Normalized find and replace.
|
|
17108
|
+
*
|
|
17109
|
+
* @typedef {Array<Pair>} Pairs
|
|
17110
|
+
* All find and replaced.
|
|
17111
|
+
*
|
|
17112
|
+
* @typedef Options
|
|
17113
|
+
* Configuration.
|
|
17114
|
+
* @property {Test | null | undefined} [ignore]
|
|
17115
|
+
* Test for which nodes to ignore (optional).
|
|
17116
|
+
*/
|
|
17117
|
+
/**
|
|
16159
17118
|
* Find patterns in a tree and replace them.
|
|
16160
17119
|
*
|
|
16161
17120
|
* The algorithm searches the tree in *preorder* for complete values in `Text`
|
|
@@ -16296,6 +17255,12 @@ function toFunction(replace$1) {
|
|
|
16296
17255
|
|
|
16297
17256
|
//#endregion
|
|
16298
17257
|
//#region node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/lib/index.js
|
|
17258
|
+
/**
|
|
17259
|
+
* @import {RegExpMatchObject, ReplaceFunction} from 'mdast-util-find-and-replace'
|
|
17260
|
+
* @import {CompileContext, Extension as FromMarkdownExtension, Handle as FromMarkdownHandle, Transform as FromMarkdownTransform} from 'mdast-util-from-markdown'
|
|
17261
|
+
* @import {ConstructName, Options as ToMarkdownExtension} from 'mdast-util-to-markdown'
|
|
17262
|
+
* @import {Link, PhrasingContent} from 'mdast'
|
|
17263
|
+
*/
|
|
16299
17264
|
/** @type {ConstructName} */
|
|
16300
17265
|
const inConstruct = "phrasing";
|
|
16301
17266
|
/** @type {Array<ConstructName>} */
|
|
@@ -16512,6 +17477,20 @@ function previous(match, email) {
|
|
|
16512
17477
|
|
|
16513
17478
|
//#endregion
|
|
16514
17479
|
//#region node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.js
|
|
17480
|
+
/**
|
|
17481
|
+
* @import {
|
|
17482
|
+
* CompileContext,
|
|
17483
|
+
* Extension as FromMarkdownExtension,
|
|
17484
|
+
* Handle as FromMarkdownHandle
|
|
17485
|
+
* } from 'mdast-util-from-markdown'
|
|
17486
|
+
* @import {ToMarkdownOptions} from 'mdast-util-gfm-footnote'
|
|
17487
|
+
* @import {
|
|
17488
|
+
* Handle as ToMarkdownHandle,
|
|
17489
|
+
* Map,
|
|
17490
|
+
* Options as ToMarkdownExtension
|
|
17491
|
+
* } from 'mdast-util-to-markdown'
|
|
17492
|
+
* @import {FootnoteDefinition, FootnoteReference} from 'mdast'
|
|
17493
|
+
*/
|
|
16515
17494
|
footnoteReference.peek = footnoteReferencePeek;
|
|
16516
17495
|
/**
|
|
16517
17496
|
* @this {CompileContext}
|
|
@@ -17083,6 +18062,35 @@ function toAlignment(value) {
|
|
|
17083
18062
|
//#endregion
|
|
17084
18063
|
//#region node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.js
|
|
17085
18064
|
/**
|
|
18065
|
+
* @typedef {import('mdast').InlineCode} InlineCode
|
|
18066
|
+
* @typedef {import('mdast').Table} Table
|
|
18067
|
+
* @typedef {import('mdast').TableCell} TableCell
|
|
18068
|
+
* @typedef {import('mdast').TableRow} TableRow
|
|
18069
|
+
*
|
|
18070
|
+
* @typedef {import('markdown-table').Options} MarkdownTableOptions
|
|
18071
|
+
*
|
|
18072
|
+
* @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext
|
|
18073
|
+
* @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension
|
|
18074
|
+
* @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle
|
|
18075
|
+
*
|
|
18076
|
+
* @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension
|
|
18077
|
+
* @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle
|
|
18078
|
+
* @typedef {import('mdast-util-to-markdown').State} State
|
|
18079
|
+
* @typedef {import('mdast-util-to-markdown').Info} Info
|
|
18080
|
+
*/
|
|
18081
|
+
/**
|
|
18082
|
+
* @typedef Options
|
|
18083
|
+
* Configuration.
|
|
18084
|
+
* @property {boolean | null | undefined} [tableCellPadding=true]
|
|
18085
|
+
* Whether to add a space of padding between delimiters and cells (default:
|
|
18086
|
+
* `true`).
|
|
18087
|
+
* @property {boolean | null | undefined} [tablePipeAlign=true]
|
|
18088
|
+
* Whether to align the delimiters (default: `true`).
|
|
18089
|
+
* @property {MarkdownTableOptions['stringLength'] | null | undefined} [stringLength]
|
|
18090
|
+
* Function to detect the length of table cell content, used when aligning
|
|
18091
|
+
* the delimiters between cells (optional).
|
|
18092
|
+
*/
|
|
18093
|
+
/**
|
|
17086
18094
|
* Create an extension for `mdast-util-from-markdown` to enable GFM tables in
|
|
17087
18095
|
* markdown.
|
|
17088
18096
|
*
|
|
@@ -17320,6 +18328,15 @@ function gfmTableToMarkdown(options) {
|
|
|
17320
18328
|
//#endregion
|
|
17321
18329
|
//#region node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules/mdast-util-gfm-task-list-item/lib/index.js
|
|
17322
18330
|
/**
|
|
18331
|
+
* @typedef {import('mdast').ListItem} ListItem
|
|
18332
|
+
* @typedef {import('mdast').Paragraph} Paragraph
|
|
18333
|
+
* @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext
|
|
18334
|
+
* @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension
|
|
18335
|
+
* @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle
|
|
18336
|
+
* @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension
|
|
18337
|
+
* @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle
|
|
18338
|
+
*/
|
|
18339
|
+
/**
|
|
17323
18340
|
* Create an extension for `mdast-util-from-markdown` to enable GFM task
|
|
17324
18341
|
* list items in markdown.
|
|
17325
18342
|
*
|
|
@@ -17422,6 +18439,11 @@ function listItemWithTaskListItem(node$1, parent, state, info$1) {
|
|
|
17422
18439
|
//#endregion
|
|
17423
18440
|
//#region node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.js
|
|
17424
18441
|
/**
|
|
18442
|
+
* @import {Extension as FromMarkdownExtension} from 'mdast-util-from-markdown'
|
|
18443
|
+
* @import {Options} from 'mdast-util-gfm'
|
|
18444
|
+
* @import {Options as ToMarkdownExtension} from 'mdast-util-to-markdown'
|
|
18445
|
+
*/
|
|
18446
|
+
/**
|
|
17425
18447
|
* Create an extension for `mdast-util-from-markdown` to enable GFM (autolink
|
|
17426
18448
|
* literals, footnotes, strikethrough, tables, tasklists).
|
|
17427
18449
|
*
|
|
@@ -17460,6 +18482,9 @@ function gfmToMarkdown(options) {
|
|
|
17460
18482
|
|
|
17461
18483
|
//#endregion
|
|
17462
18484
|
//#region node_modules/.pnpm/micromark-extension-gfm-autolink-literal@2.1.0/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js
|
|
18485
|
+
/**
|
|
18486
|
+
* @import {Code, ConstructRecord, Event, Extension, Previous, State, TokenizeContext, Tokenizer} from 'micromark-util-types'
|
|
18487
|
+
*/
|
|
17463
18488
|
const wwwPrefix = {
|
|
17464
18489
|
tokenize: tokenizeWwwPrefix,
|
|
17465
18490
|
partial: true
|
|
@@ -18159,6 +19184,9 @@ function previousUnbalanced(events) {
|
|
|
18159
19184
|
|
|
18160
19185
|
//#endregion
|
|
18161
19186
|
//#region node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules/micromark-extension-gfm-footnote/lib/syntax.js
|
|
19187
|
+
/**
|
|
19188
|
+
* @import {Event, Exiter, Extension, Resolver, State, Token, TokenizeContext, Tokenizer} from 'micromark-util-types'
|
|
19189
|
+
*/
|
|
18162
19190
|
const indent = {
|
|
18163
19191
|
tokenize: tokenizeIndent,
|
|
18164
19192
|
partial: true
|
|
@@ -18577,6 +19605,10 @@ function tokenizeIndent(effects, ok$2, nok) {
|
|
|
18577
19605
|
//#endregion
|
|
18578
19606
|
//#region node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js
|
|
18579
19607
|
/**
|
|
19608
|
+
* @import {Options} from 'micromark-extension-gfm-strikethrough'
|
|
19609
|
+
* @import {Event, Extension, Resolver, State, Token, TokenizeContext, Tokenizer} from 'micromark-util-types'
|
|
19610
|
+
*/
|
|
19611
|
+
/**
|
|
18580
19612
|
* Create an extension for `micromark` to enable GFM strikethrough syntax.
|
|
18581
19613
|
*
|
|
18582
19614
|
* @param {Options | null | undefined} [options={}]
|
|
@@ -18847,6 +19879,16 @@ function gfmTableAlign(events, index$1) {
|
|
|
18847
19879
|
//#endregion
|
|
18848
19880
|
//#region node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/syntax.js
|
|
18849
19881
|
/**
|
|
19882
|
+
* @import {Event, Extension, Point, Resolver, State, Token, TokenizeContext, Tokenizer} from 'micromark-util-types'
|
|
19883
|
+
*/
|
|
19884
|
+
/**
|
|
19885
|
+
* @typedef {[number, number, number, number]} Range
|
|
19886
|
+
* Cell info.
|
|
19887
|
+
*
|
|
19888
|
+
* @typedef {0 | 1 | 2 | 3} RowKind
|
|
19889
|
+
* Where we are: `1` for head row, `2` for delimiter row, `3` for body row.
|
|
19890
|
+
*/
|
|
19891
|
+
/**
|
|
18850
19892
|
* Create an HTML extension for `micromark` to support GitHub tables syntax.
|
|
18851
19893
|
*
|
|
18852
19894
|
* @returns {Extension}
|
|
@@ -19531,6 +20573,9 @@ function getPoint(events, index$1) {
|
|
|
19531
20573
|
|
|
19532
20574
|
//#endregion
|
|
19533
20575
|
//#region node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js
|
|
20576
|
+
/**
|
|
20577
|
+
* @import {Extension, State, TokenizeContext, Tokenizer} from 'micromark-util-types'
|
|
20578
|
+
*/
|
|
19534
20579
|
const tasklistCheck = {
|
|
19535
20580
|
name: "tasklistCheck",
|
|
19536
20581
|
tokenize: tokenizeTasklistCheck
|
|
@@ -19649,6 +20694,12 @@ function spaceThenNonSpace(effects, ok$2, nok) {
|
|
|
19649
20694
|
//#endregion
|
|
19650
20695
|
//#region node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.js
|
|
19651
20696
|
/**
|
|
20697
|
+
* @typedef {import('micromark-extension-gfm-footnote').HtmlOptions} HtmlOptions
|
|
20698
|
+
* @typedef {import('micromark-extension-gfm-strikethrough').Options} Options
|
|
20699
|
+
* @typedef {import('micromark-util-types').Extension} Extension
|
|
20700
|
+
* @typedef {import('micromark-util-types').HtmlExtension} HtmlExtension
|
|
20701
|
+
*/
|
|
20702
|
+
/**
|
|
19652
20703
|
* Create an extension for `micromark` to enable GFM syntax.
|
|
19653
20704
|
*
|
|
19654
20705
|
* @param {Options | null | undefined} [options]
|
|
@@ -19671,6 +20722,13 @@ function gfm(options) {
|
|
|
19671
20722
|
|
|
19672
20723
|
//#endregion
|
|
19673
20724
|
//#region node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.js
|
|
20725
|
+
/**
|
|
20726
|
+
* @import {Root} from 'mdast'
|
|
20727
|
+
* @import {Options} from 'remark-gfm'
|
|
20728
|
+
* @import {} from 'remark-parse'
|
|
20729
|
+
* @import {} from 'remark-stringify'
|
|
20730
|
+
* @import {Processor} from 'unified'
|
|
20731
|
+
*/
|
|
19674
20732
|
/** @type {Options} */
|
|
19675
20733
|
const emptyOptions$1 = {};
|
|
19676
20734
|
/**
|
|
@@ -19770,6 +20828,9 @@ Schema.prototype.space = void 0;
|
|
|
19770
20828
|
//#endregion
|
|
19771
20829
|
//#region node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.js
|
|
19772
20830
|
/**
|
|
20831
|
+
* @import {Info, Space} from 'property-information'
|
|
20832
|
+
*/
|
|
20833
|
+
/**
|
|
19773
20834
|
* @param {ReadonlyArray<Schema>} definitions
|
|
19774
20835
|
* Definitions.
|
|
19775
20836
|
* @param {Space | undefined} [space]
|
|
@@ -19862,6 +20923,9 @@ function increment() {
|
|
|
19862
20923
|
|
|
19863
20924
|
//#endregion
|
|
19864
20925
|
//#region node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.js
|
|
20926
|
+
/**
|
|
20927
|
+
* @import {Space} from 'property-information'
|
|
20928
|
+
*/
|
|
19865
20929
|
const checks = Object.keys(types_exports);
|
|
19866
20930
|
var DefinedInfo = class extends Info {
|
|
19867
20931
|
/**
|
|
@@ -19907,6 +20971,33 @@ function mark(values, key$1, value) {
|
|
|
19907
20971
|
//#endregion
|
|
19908
20972
|
//#region node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.js
|
|
19909
20973
|
/**
|
|
20974
|
+
* @import {Info, Space} from 'property-information'
|
|
20975
|
+
*/
|
|
20976
|
+
/**
|
|
20977
|
+
* @typedef Definition
|
|
20978
|
+
* Definition of a schema.
|
|
20979
|
+
* @property {Record<string, string> | undefined} [attributes]
|
|
20980
|
+
* Normalzed names to special attribute case.
|
|
20981
|
+
* @property {ReadonlyArray<string> | undefined} [mustUseProperty]
|
|
20982
|
+
* Normalized names that must be set as properties.
|
|
20983
|
+
* @property {Record<string, number | null>} properties
|
|
20984
|
+
* Property names to their types.
|
|
20985
|
+
* @property {Space | undefined} [space]
|
|
20986
|
+
* Space.
|
|
20987
|
+
* @property {Transform} transform
|
|
20988
|
+
* Transform a property name.
|
|
20989
|
+
*/
|
|
20990
|
+
/**
|
|
20991
|
+
* @callback Transform
|
|
20992
|
+
* Transform.
|
|
20993
|
+
* @param {Record<string, string>} attributes
|
|
20994
|
+
* Attributes.
|
|
20995
|
+
* @param {string} property
|
|
20996
|
+
* Property.
|
|
20997
|
+
* @returns {string}
|
|
20998
|
+
* Attribute.
|
|
20999
|
+
*/
|
|
21000
|
+
/**
|
|
19910
21001
|
* @param {Definition} definition
|
|
19911
21002
|
* Definition.
|
|
19912
21003
|
* @returns {Schema}
|
|
@@ -20932,6 +22023,9 @@ const xml = create({
|
|
|
20932
22023
|
|
|
20933
22024
|
//#endregion
|
|
20934
22025
|
//#region node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.js
|
|
22026
|
+
/**
|
|
22027
|
+
* @import {Schema} from 'property-information'
|
|
22028
|
+
*/
|
|
20935
22029
|
const cap = /[A-Z]/g;
|
|
20936
22030
|
const dash = /-[a-z]/g;
|
|
20937
22031
|
const valid = /^data[-\w.:]+$/i;
|
|
@@ -21159,6 +22253,54 @@ function parse$2(value) {
|
|
|
21159
22253
|
//#endregion
|
|
21160
22254
|
//#region node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.js
|
|
21161
22255
|
/**
|
|
22256
|
+
* @import {Element, Nodes, RootContent, Root} from 'hast'
|
|
22257
|
+
* @import {Info, Schema} from 'property-information'
|
|
22258
|
+
*/
|
|
22259
|
+
/**
|
|
22260
|
+
* @typedef {Array<Nodes | PrimitiveChild>} ArrayChildNested
|
|
22261
|
+
* List of children (deep).
|
|
22262
|
+
*/
|
|
22263
|
+
/**
|
|
22264
|
+
* @typedef {Array<ArrayChildNested | Nodes | PrimitiveChild>} ArrayChild
|
|
22265
|
+
* List of children.
|
|
22266
|
+
*/
|
|
22267
|
+
/**
|
|
22268
|
+
* @typedef {Array<number | string>} ArrayValue
|
|
22269
|
+
* List of property values for space- or comma separated values (such as `className`).
|
|
22270
|
+
*/
|
|
22271
|
+
/**
|
|
22272
|
+
* @typedef {ArrayChild | Nodes | PrimitiveChild} Child
|
|
22273
|
+
* Acceptable child value.
|
|
22274
|
+
*/
|
|
22275
|
+
/**
|
|
22276
|
+
* @typedef {number | string | null | undefined} PrimitiveChild
|
|
22277
|
+
* Primitive children, either ignored (nullish), or turned into text nodes.
|
|
22278
|
+
*/
|
|
22279
|
+
/**
|
|
22280
|
+
* @typedef {boolean | number | string | null | undefined} PrimitiveValue
|
|
22281
|
+
* Primitive property value.
|
|
22282
|
+
*/
|
|
22283
|
+
/**
|
|
22284
|
+
* @typedef {Record<string, PropertyValue | Style>} Properties
|
|
22285
|
+
* Acceptable value for element properties.
|
|
22286
|
+
*/
|
|
22287
|
+
/**
|
|
22288
|
+
* @typedef {ArrayValue | PrimitiveValue} PropertyValue
|
|
22289
|
+
* Primitive value or list value.
|
|
22290
|
+
*/
|
|
22291
|
+
/**
|
|
22292
|
+
* @typedef {Element | Root} Result
|
|
22293
|
+
* Result from a `h` (or `s`) call.
|
|
22294
|
+
*/
|
|
22295
|
+
/**
|
|
22296
|
+
* @typedef {number | string} StyleValue
|
|
22297
|
+
* Value for a CSS style field.
|
|
22298
|
+
*/
|
|
22299
|
+
/**
|
|
22300
|
+
* @typedef {Record<string, StyleValue>} Style
|
|
22301
|
+
* Supported value of a `style` prop.
|
|
22302
|
+
*/
|
|
22303
|
+
/**
|
|
21162
22304
|
* @param {Schema} schema
|
|
21163
22305
|
* Schema to use.
|
|
21164
22306
|
* @param {string} defaultTagName
|
|
@@ -21404,6 +22546,18 @@ const svgCaseSensitiveTagNames = [
|
|
|
21404
22546
|
|
|
21405
22547
|
//#endregion
|
|
21406
22548
|
//#region node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.js
|
|
22549
|
+
/**
|
|
22550
|
+
* @typedef {import('./jsx-classic.js').Element} h.JSX.Element
|
|
22551
|
+
* @typedef {import('./jsx-classic.js').ElementChildrenAttribute} h.JSX.ElementChildrenAttribute
|
|
22552
|
+
* @typedef {import('./jsx-classic.js').IntrinsicAttributes} h.JSX.IntrinsicAttributes
|
|
22553
|
+
* @typedef {import('./jsx-classic.js').IntrinsicElements} h.JSX.IntrinsicElements
|
|
22554
|
+
*/
|
|
22555
|
+
/**
|
|
22556
|
+
* @typedef {import('./jsx-classic.js').Element} s.JSX.Element
|
|
22557
|
+
* @typedef {import('./jsx-classic.js').ElementChildrenAttribute} s.JSX.ElementChildrenAttribute
|
|
22558
|
+
* @typedef {import('./jsx-classic.js').IntrinsicAttributes} s.JSX.IntrinsicAttributes
|
|
22559
|
+
* @typedef {import('./jsx-classic.js').IntrinsicElements} s.JSX.IntrinsicElements
|
|
22560
|
+
*/
|
|
21407
22561
|
/** @type {ReturnType<createH>} */
|
|
21408
22562
|
const h = createH(html, "div");
|
|
21409
22563
|
/** @type {ReturnType<createH>} */
|
|
@@ -21506,6 +22660,26 @@ const webNamespaces = {
|
|
|
21506
22660
|
|
|
21507
22661
|
//#endregion
|
|
21508
22662
|
//#region node_modules/.pnpm/hast-util-from-parse5@8.0.3/node_modules/hast-util-from-parse5/lib/index.js
|
|
22663
|
+
/**
|
|
22664
|
+
* @import {ElementData, Element, Nodes, RootContent, Root} from 'hast'
|
|
22665
|
+
* @import {DefaultTreeAdapterMap, Token} from 'parse5'
|
|
22666
|
+
* @import {Schema} from 'property-information'
|
|
22667
|
+
* @import {Point, Position} from 'unist'
|
|
22668
|
+
* @import {VFile} from 'vfile'
|
|
22669
|
+
* @import {Options} from 'hast-util-from-parse5'
|
|
22670
|
+
*/
|
|
22671
|
+
/**
|
|
22672
|
+
* @typedef State
|
|
22673
|
+
* Info passed around about the current state.
|
|
22674
|
+
* @property {VFile | undefined} file
|
|
22675
|
+
* Corresponding file.
|
|
22676
|
+
* @property {boolean} location
|
|
22677
|
+
* Whether location info was found.
|
|
22678
|
+
* @property {Schema} schema
|
|
22679
|
+
* Current schema.
|
|
22680
|
+
* @property {boolean | undefined} verbose
|
|
22681
|
+
* Add extra positional info.
|
|
22682
|
+
*/
|
|
21509
22683
|
const own = {}.hasOwnProperty;
|
|
21510
22684
|
/** @type {unknown} */
|
|
21511
22685
|
const proto = Object.prototype;
|
|
@@ -28825,6 +29999,12 @@ const errors = {
|
|
|
28825
29999
|
|
|
28826
30000
|
//#endregion
|
|
28827
30001
|
//#region node_modules/.pnpm/hast-util-from-html@2.0.3/node_modules/hast-util-from-html/lib/index.js
|
|
30002
|
+
/**
|
|
30003
|
+
* @import {Root} from 'hast'
|
|
30004
|
+
* @import {ParserError} from 'parse5'
|
|
30005
|
+
* @import {Value} from 'vfile'
|
|
30006
|
+
* @import {ErrorCode, Options} from './types.js'
|
|
30007
|
+
*/
|
|
28828
30008
|
const base = "https://html.spec.whatwg.org/multipage/parsing.html#parse-error-";
|
|
28829
30009
|
const dashToCamelRe = /-[a-z]/g;
|
|
28830
30010
|
const formatCRe = /%c(?:([-+])(\d+))?/g;
|