@uiw/react-md-editor 4.0.3 → 4.0.4
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/README.md +21 -0
- package/commands-cn.d.ts +65 -0
- package/dist/mdeditor.css +50 -48
- package/dist/mdeditor.js +249 -220
- package/dist/mdeditor.min.css +1 -1
- package/dist/mdeditor.min.js +1 -1
- package/esm/commands/index.cn.d.ts +33 -0
- package/esm/commands/index.cn.js +197 -0
- package/lib/commands/index.cn.d.ts +33 -0
- package/lib/commands/index.cn.js +221 -0
- package/package.json +7 -1
- package/src/commands/index.cn.ts +187 -0
package/dist/mdeditor.js
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
exports["@uiw/react-md-editor"] = factory(require("react"));
|
|
8
8
|
else
|
|
9
9
|
root["@uiw/react-md-editor"] = factory(root["React"]);
|
|
10
|
-
})(self, (
|
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE__442__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
14
|
-
/***/
|
|
14
|
+
/***/ 886:
|
|
15
15
|
/***/ (function(module) {
|
|
16
16
|
|
|
17
17
|
/**!
|
|
@@ -91,7 +91,7 @@ return /******/ (() => { // webpackBootstrap
|
|
|
91
91
|
|
|
92
92
|
/***/ }),
|
|
93
93
|
|
|
94
|
-
/***/
|
|
94
|
+
/***/ 740:
|
|
95
95
|
/***/ ((module) => {
|
|
96
96
|
|
|
97
97
|
module.exports = {
|
|
@@ -105,7 +105,7 @@ module.exports = {
|
|
|
105
105
|
|
|
106
106
|
/***/ }),
|
|
107
107
|
|
|
108
|
-
/***/
|
|
108
|
+
/***/ 909:
|
|
109
109
|
/***/ ((module) => {
|
|
110
110
|
|
|
111
111
|
"use strict";
|
|
@@ -230,7 +230,7 @@ module.exports = function extend() {
|
|
|
230
230
|
|
|
231
231
|
/***/ }),
|
|
232
232
|
|
|
233
|
-
/***/
|
|
233
|
+
/***/ 848:
|
|
234
234
|
/***/ ((module) => {
|
|
235
235
|
|
|
236
236
|
// http://www.w3.org/TR/CSS21/grammar.html
|
|
@@ -498,7 +498,7 @@ function trim(str) {
|
|
|
498
498
|
|
|
499
499
|
/***/ }),
|
|
500
500
|
|
|
501
|
-
/***/
|
|
501
|
+
/***/ 934:
|
|
502
502
|
/***/ ((module, exports) => {
|
|
503
503
|
|
|
504
504
|
/**
|
|
@@ -541,7 +541,7 @@ module.exports = parsePart;
|
|
|
541
541
|
|
|
542
542
|
/***/ }),
|
|
543
543
|
|
|
544
|
-
/***/
|
|
544
|
+
/***/ 192:
|
|
545
545
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
546
546
|
|
|
547
547
|
"use strict";
|
|
@@ -554,26 +554,26 @@ module.exports = parsePart;
|
|
|
554
554
|
* This source code is licensed under the MIT license found in the
|
|
555
555
|
* LICENSE file in the root directory of this source tree.
|
|
556
556
|
*/
|
|
557
|
-
var f=__webpack_require__(
|
|
557
|
+
var f=__webpack_require__(442),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
|
|
558
558
|
function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;
|
|
559
559
|
|
|
560
560
|
|
|
561
561
|
/***/ }),
|
|
562
562
|
|
|
563
|
-
/***/
|
|
563
|
+
/***/ 540:
|
|
564
564
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
565
565
|
|
|
566
566
|
"use strict";
|
|
567
567
|
|
|
568
568
|
|
|
569
569
|
if (true) {
|
|
570
|
-
module.exports = __webpack_require__(
|
|
570
|
+
module.exports = __webpack_require__(192);
|
|
571
571
|
} else {}
|
|
572
572
|
|
|
573
573
|
|
|
574
574
|
/***/ }),
|
|
575
575
|
|
|
576
|
-
/***/
|
|
576
|
+
/***/ 857:
|
|
577
577
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
578
578
|
|
|
579
579
|
"use strict";
|
|
@@ -582,7 +582,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
582
582
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
583
583
|
};
|
|
584
584
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
585
|
-
var inline_style_parser_1 = __importDefault(__webpack_require__(
|
|
585
|
+
var inline_style_parser_1 = __importDefault(__webpack_require__(848));
|
|
586
586
|
/**
|
|
587
587
|
* Parses inline style to object.
|
|
588
588
|
*
|
|
@@ -624,11 +624,11 @@ exports["default"] = StyleToObject;
|
|
|
624
624
|
|
|
625
625
|
/***/ }),
|
|
626
626
|
|
|
627
|
-
/***/
|
|
627
|
+
/***/ 442:
|
|
628
628
|
/***/ ((module) => {
|
|
629
629
|
|
|
630
630
|
"use strict";
|
|
631
|
-
module.exports =
|
|
631
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__442__;
|
|
632
632
|
|
|
633
633
|
/***/ })
|
|
634
634
|
|
|
@@ -998,7 +998,7 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
998
998
|
return target;
|
|
999
999
|
}
|
|
1000
1000
|
// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"}
|
|
1001
|
-
var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(
|
|
1001
|
+
var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(442);
|
|
1002
1002
|
var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__PURE__*/__webpack_require__.n(external_root_React_commonjs2_react_commonjs_react_amd_react_);
|
|
1003
1003
|
;// CONCATENATED MODULE: ../node_modules/@babel/runtime/helpers/esm/extends.js
|
|
1004
1004
|
function _extends() {
|
|
@@ -1574,7 +1574,7 @@ const html = create({
|
|
|
1574
1574
|
autoFocus: types_boolean,
|
|
1575
1575
|
autoPlay: types_boolean,
|
|
1576
1576
|
blocking: spaceSeparated,
|
|
1577
|
-
capture:
|
|
1577
|
+
capture: null,
|
|
1578
1578
|
charSet: null,
|
|
1579
1579
|
checked: types_boolean,
|
|
1580
1580
|
cite: null,
|
|
@@ -2565,7 +2565,7 @@ function space_separated_tokens_stringify(values) {
|
|
|
2565
2565
|
}
|
|
2566
2566
|
|
|
2567
2567
|
// EXTERNAL MODULE: ../node_modules/style-to-object/cjs/index.js
|
|
2568
|
-
var cjs = __webpack_require__(
|
|
2568
|
+
var cjs = __webpack_require__(857);
|
|
2569
2569
|
;// CONCATENATED MODULE: ../node_modules/style-to-object/esm/index.mjs
|
|
2570
2570
|
|
|
2571
2571
|
|
|
@@ -4195,7 +4195,7 @@ const urlAttributes = {
|
|
|
4195
4195
|
}
|
|
4196
4196
|
|
|
4197
4197
|
// EXTERNAL MODULE: ../node_modules/react/jsx-runtime.js
|
|
4198
|
-
var jsx_runtime = __webpack_require__(
|
|
4198
|
+
var jsx_runtime = __webpack_require__(540);
|
|
4199
4199
|
;// CONCATENATED MODULE: ../node_modules/remark-parse/node_modules/mdast-util-to-string/lib/index.js
|
|
4200
4200
|
/**
|
|
4201
4201
|
* @typedef {import('mdast').Nodes} Nodes
|
|
@@ -4776,8 +4776,6 @@ function htmlExtension(all, extension) {
|
|
|
4776
4776
|
* @typedef {import('micromark-util-types').Code} Code
|
|
4777
4777
|
*/
|
|
4778
4778
|
|
|
4779
|
-
const unicodePunctuationInternal = regexCheck(/\p{P}/u)
|
|
4780
|
-
|
|
4781
4779
|
/**
|
|
4782
4780
|
* Check whether the character code represents an ASCII alpha (`a` through `z`,
|
|
4783
4781
|
* case insensitive).
|
|
@@ -4795,7 +4793,7 @@ const unicodePunctuationInternal = regexCheck(/\p{P}/u)
|
|
|
4795
4793
|
* @returns {boolean}
|
|
4796
4794
|
* Whether it matches.
|
|
4797
4795
|
*/
|
|
4798
|
-
const asciiAlpha = regexCheck(/[A-Za-z]/)
|
|
4796
|
+
const asciiAlpha = regexCheck(/[A-Za-z]/);
|
|
4799
4797
|
|
|
4800
4798
|
/**
|
|
4801
4799
|
* Check whether the character code represents an ASCII alphanumeric (`a`
|
|
@@ -4809,7 +4807,7 @@ const asciiAlpha = regexCheck(/[A-Za-z]/)
|
|
|
4809
4807
|
* @returns {boolean}
|
|
4810
4808
|
* Whether it matches.
|
|
4811
4809
|
*/
|
|
4812
|
-
const asciiAlphanumeric = regexCheck(/[\dA-Za-z]/)
|
|
4810
|
+
const asciiAlphanumeric = regexCheck(/[\dA-Za-z]/);
|
|
4813
4811
|
|
|
4814
4812
|
/**
|
|
4815
4813
|
* Check whether the character code represents an ASCII atext.
|
|
@@ -4832,7 +4830,7 @@ const asciiAlphanumeric = regexCheck(/[\dA-Za-z]/)
|
|
|
4832
4830
|
* @returns {boolean}
|
|
4833
4831
|
* Whether it matches.
|
|
4834
4832
|
*/
|
|
4835
|
-
const asciiAtext = regexCheck(/[#-'*+\--9=?A-Z^-~]/)
|
|
4833
|
+
const asciiAtext = regexCheck(/[#-'*+\--9=?A-Z^-~]/);
|
|
4836
4834
|
|
|
4837
4835
|
/**
|
|
4838
4836
|
* Check whether a character code is an ASCII control character.
|
|
@@ -4850,7 +4848,7 @@ function asciiControl(code) {
|
|
|
4850
4848
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
4851
4849
|
// character DEL
|
|
4852
4850
|
code !== null && (code < 32 || code === 127)
|
|
4853
|
-
)
|
|
4851
|
+
);
|
|
4854
4852
|
}
|
|
4855
4853
|
|
|
4856
4854
|
/**
|
|
@@ -4864,7 +4862,7 @@ function asciiControl(code) {
|
|
|
4864
4862
|
* @returns {boolean}
|
|
4865
4863
|
* Whether it matches.
|
|
4866
4864
|
*/
|
|
4867
|
-
const asciiDigit = regexCheck(/\d/)
|
|
4865
|
+
const asciiDigit = regexCheck(/\d/);
|
|
4868
4866
|
|
|
4869
4867
|
/**
|
|
4870
4868
|
* Check whether the character code represents an ASCII hex digit (`a` through
|
|
@@ -4884,7 +4882,7 @@ const asciiDigit = regexCheck(/\d/)
|
|
|
4884
4882
|
* @returns {boolean}
|
|
4885
4883
|
* Whether it matches.
|
|
4886
4884
|
*/
|
|
4887
|
-
const asciiHexDigit = regexCheck(/[\dA-Fa-f]/)
|
|
4885
|
+
const asciiHexDigit = regexCheck(/[\dA-Fa-f]/);
|
|
4888
4886
|
|
|
4889
4887
|
/**
|
|
4890
4888
|
* Check whether the character code represents ASCII punctuation.
|
|
@@ -4899,7 +4897,7 @@ const asciiHexDigit = regexCheck(/[\dA-Fa-f]/)
|
|
|
4899
4897
|
* @returns {boolean}
|
|
4900
4898
|
* Whether it matches.
|
|
4901
4899
|
*/
|
|
4902
|
-
const asciiPunctuation = regexCheck(/[!-/:-@[-`{-~]/)
|
|
4900
|
+
const asciiPunctuation = regexCheck(/[!-/:-@[-`{-~]/);
|
|
4903
4901
|
|
|
4904
4902
|
/**
|
|
4905
4903
|
* Check whether a character code is a markdown line ending.
|
|
@@ -4917,7 +4915,7 @@ const asciiPunctuation = regexCheck(/[!-/:-@[-`{-~]/)
|
|
|
4917
4915
|
* Whether it matches.
|
|
4918
4916
|
*/
|
|
4919
4917
|
function markdownLineEnding(code) {
|
|
4920
|
-
return code !== null && code < -2
|
|
4918
|
+
return code !== null && code < -2;
|
|
4921
4919
|
}
|
|
4922
4920
|
|
|
4923
4921
|
/**
|
|
@@ -4930,7 +4928,7 @@ function markdownLineEnding(code) {
|
|
|
4930
4928
|
* Whether it matches.
|
|
4931
4929
|
*/
|
|
4932
4930
|
function markdownLineEndingOrSpace(code) {
|
|
4933
|
-
return code !== null && (code < 0 || code === 32)
|
|
4931
|
+
return code !== null && (code < 0 || code === 32);
|
|
4934
4932
|
}
|
|
4935
4933
|
|
|
4936
4934
|
/**
|
|
@@ -4949,7 +4947,7 @@ function markdownLineEndingOrSpace(code) {
|
|
|
4949
4947
|
* Whether it matches.
|
|
4950
4948
|
*/
|
|
4951
4949
|
function markdownSpace(code) {
|
|
4952
|
-
return code === -2 || code === -1 || code === 32
|
|
4950
|
+
return code === -2 || code === -1 || code === 32;
|
|
4953
4951
|
}
|
|
4954
4952
|
|
|
4955
4953
|
// Size note: removing ASCII from the regex and using `asciiPunctuation` here
|
|
@@ -4968,14 +4966,12 @@ function markdownSpace(code) {
|
|
|
4968
4966
|
* [The Unicode Standard](https://www.unicode.org/versions/).
|
|
4969
4967
|
* Unicode Consortium.
|
|
4970
4968
|
*
|
|
4971
|
-
* @param
|
|
4969
|
+
* @param code
|
|
4972
4970
|
* Code.
|
|
4973
|
-
* @returns
|
|
4971
|
+
* @returns
|
|
4974
4972
|
* Whether it matches.
|
|
4975
4973
|
*/
|
|
4976
|
-
|
|
4977
|
-
return asciiPunctuation(code) || unicodePunctuationInternal(code)
|
|
4978
|
-
}
|
|
4974
|
+
const unicodePunctuation = regexCheck(/\p{P}|\p{S}/u);
|
|
4979
4975
|
|
|
4980
4976
|
/**
|
|
4981
4977
|
* Check whether the character code represents Unicode whitespace.
|
|
@@ -4994,10 +4990,10 @@ function unicodePunctuation(code) {
|
|
|
4994
4990
|
*
|
|
4995
4991
|
* @param code
|
|
4996
4992
|
* Code.
|
|
4997
|
-
* @returns
|
|
4993
|
+
* @returns
|
|
4998
4994
|
* Whether it matches.
|
|
4999
4995
|
*/
|
|
5000
|
-
const unicodeWhitespace = regexCheck(/\s/)
|
|
4996
|
+
const unicodeWhitespace = regexCheck(/\s/);
|
|
5001
4997
|
|
|
5002
4998
|
/**
|
|
5003
4999
|
* Create a code check from a regex.
|
|
@@ -5006,7 +5002,7 @@ const unicodeWhitespace = regexCheck(/\s/)
|
|
|
5006
5002
|
* @returns {(code: Code) => boolean}
|
|
5007
5003
|
*/
|
|
5008
5004
|
function regexCheck(regex) {
|
|
5009
|
-
return check
|
|
5005
|
+
return check;
|
|
5010
5006
|
|
|
5011
5007
|
/**
|
|
5012
5008
|
* Check whether a code matches the bound regex.
|
|
@@ -5017,10 +5013,9 @@ function regexCheck(regex) {
|
|
|
5017
5013
|
* Whether the character code matches the bound regex.
|
|
5018
5014
|
*/
|
|
5019
5015
|
function check(code) {
|
|
5020
|
-
return code !== null && code > -1 && regex.test(String.fromCharCode(code))
|
|
5016
|
+
return code !== null && code > -1 && regex.test(String.fromCharCode(code));
|
|
5021
5017
|
}
|
|
5022
5018
|
}
|
|
5023
|
-
|
|
5024
5019
|
;// CONCATENATED MODULE: ../node_modules/remark-parse/node_modules/micromark-factory-space/index.js
|
|
5025
5020
|
/**
|
|
5026
5021
|
* @typedef {import('micromark-util-types').Effects} Effects
|
|
@@ -14880,8 +14875,6 @@ const serializer = (strict, json, $, _) => {
|
|
|
14880
14875
|
* @typedef {import('micromark-util-types').Code} Code
|
|
14881
14876
|
*/
|
|
14882
14877
|
|
|
14883
|
-
const micromark_util_character_unicodePunctuationInternal = micromark_util_character_regexCheck(/\p{P}/u)
|
|
14884
|
-
|
|
14885
14878
|
/**
|
|
14886
14879
|
* Check whether the character code represents an ASCII alpha (`a` through `z`,
|
|
14887
14880
|
* case insensitive).
|
|
@@ -14899,7 +14892,7 @@ const micromark_util_character_unicodePunctuationInternal = micromark_util_chara
|
|
|
14899
14892
|
* @returns {boolean}
|
|
14900
14893
|
* Whether it matches.
|
|
14901
14894
|
*/
|
|
14902
|
-
const micromark_util_character_asciiAlpha = micromark_util_character_regexCheck(/[A-Za-z]/)
|
|
14895
|
+
const micromark_util_character_asciiAlpha = micromark_util_character_regexCheck(/[A-Za-z]/);
|
|
14903
14896
|
|
|
14904
14897
|
/**
|
|
14905
14898
|
* Check whether the character code represents an ASCII alphanumeric (`a`
|
|
@@ -14913,7 +14906,7 @@ const micromark_util_character_asciiAlpha = micromark_util_character_regexCheck(
|
|
|
14913
14906
|
* @returns {boolean}
|
|
14914
14907
|
* Whether it matches.
|
|
14915
14908
|
*/
|
|
14916
|
-
const micromark_util_character_asciiAlphanumeric = micromark_util_character_regexCheck(/[\dA-Za-z]/)
|
|
14909
|
+
const micromark_util_character_asciiAlphanumeric = micromark_util_character_regexCheck(/[\dA-Za-z]/);
|
|
14917
14910
|
|
|
14918
14911
|
/**
|
|
14919
14912
|
* Check whether the character code represents an ASCII atext.
|
|
@@ -14936,7 +14929,7 @@ const micromark_util_character_asciiAlphanumeric = micromark_util_character_rege
|
|
|
14936
14929
|
* @returns {boolean}
|
|
14937
14930
|
* Whether it matches.
|
|
14938
14931
|
*/
|
|
14939
|
-
const micromark_util_character_asciiAtext = micromark_util_character_regexCheck(/[#-'*+\--9=?A-Z^-~]/)
|
|
14932
|
+
const micromark_util_character_asciiAtext = micromark_util_character_regexCheck(/[#-'*+\--9=?A-Z^-~]/);
|
|
14940
14933
|
|
|
14941
14934
|
/**
|
|
14942
14935
|
* Check whether a character code is an ASCII control character.
|
|
@@ -14954,7 +14947,7 @@ function micromark_util_character_asciiControl(code) {
|
|
|
14954
14947
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
14955
14948
|
// character DEL
|
|
14956
14949
|
code !== null && (code < 32 || code === 127)
|
|
14957
|
-
)
|
|
14950
|
+
);
|
|
14958
14951
|
}
|
|
14959
14952
|
|
|
14960
14953
|
/**
|
|
@@ -14968,7 +14961,7 @@ function micromark_util_character_asciiControl(code) {
|
|
|
14968
14961
|
* @returns {boolean}
|
|
14969
14962
|
* Whether it matches.
|
|
14970
14963
|
*/
|
|
14971
|
-
const micromark_util_character_asciiDigit = micromark_util_character_regexCheck(/\d/)
|
|
14964
|
+
const micromark_util_character_asciiDigit = micromark_util_character_regexCheck(/\d/);
|
|
14972
14965
|
|
|
14973
14966
|
/**
|
|
14974
14967
|
* Check whether the character code represents an ASCII hex digit (`a` through
|
|
@@ -14988,7 +14981,7 @@ const micromark_util_character_asciiDigit = micromark_util_character_regexCheck(
|
|
|
14988
14981
|
* @returns {boolean}
|
|
14989
14982
|
* Whether it matches.
|
|
14990
14983
|
*/
|
|
14991
|
-
const micromark_util_character_asciiHexDigit = micromark_util_character_regexCheck(/[\dA-Fa-f]/)
|
|
14984
|
+
const micromark_util_character_asciiHexDigit = micromark_util_character_regexCheck(/[\dA-Fa-f]/);
|
|
14992
14985
|
|
|
14993
14986
|
/**
|
|
14994
14987
|
* Check whether the character code represents ASCII punctuation.
|
|
@@ -15003,7 +14996,7 @@ const micromark_util_character_asciiHexDigit = micromark_util_character_regexChe
|
|
|
15003
14996
|
* @returns {boolean}
|
|
15004
14997
|
* Whether it matches.
|
|
15005
14998
|
*/
|
|
15006
|
-
const micromark_util_character_asciiPunctuation = micromark_util_character_regexCheck(/[!-/:-@[-`{-~]/)
|
|
14999
|
+
const micromark_util_character_asciiPunctuation = micromark_util_character_regexCheck(/[!-/:-@[-`{-~]/);
|
|
15007
15000
|
|
|
15008
15001
|
/**
|
|
15009
15002
|
* Check whether a character code is a markdown line ending.
|
|
@@ -15021,7 +15014,7 @@ const micromark_util_character_asciiPunctuation = micromark_util_character_regex
|
|
|
15021
15014
|
* Whether it matches.
|
|
15022
15015
|
*/
|
|
15023
15016
|
function micromark_util_character_markdownLineEnding(code) {
|
|
15024
|
-
return code !== null && code < -2
|
|
15017
|
+
return code !== null && code < -2;
|
|
15025
15018
|
}
|
|
15026
15019
|
|
|
15027
15020
|
/**
|
|
@@ -15034,7 +15027,7 @@ function micromark_util_character_markdownLineEnding(code) {
|
|
|
15034
15027
|
* Whether it matches.
|
|
15035
15028
|
*/
|
|
15036
15029
|
function micromark_util_character_markdownLineEndingOrSpace(code) {
|
|
15037
|
-
return code !== null && (code < 0 || code === 32)
|
|
15030
|
+
return code !== null && (code < 0 || code === 32);
|
|
15038
15031
|
}
|
|
15039
15032
|
|
|
15040
15033
|
/**
|
|
@@ -15053,7 +15046,7 @@ function micromark_util_character_markdownLineEndingOrSpace(code) {
|
|
|
15053
15046
|
* Whether it matches.
|
|
15054
15047
|
*/
|
|
15055
15048
|
function micromark_util_character_markdownSpace(code) {
|
|
15056
|
-
return code === -2 || code === -1 || code === 32
|
|
15049
|
+
return code === -2 || code === -1 || code === 32;
|
|
15057
15050
|
}
|
|
15058
15051
|
|
|
15059
15052
|
// Size note: removing ASCII from the regex and using `asciiPunctuation` here
|
|
@@ -15072,14 +15065,12 @@ function micromark_util_character_markdownSpace(code) {
|
|
|
15072
15065
|
* [The Unicode Standard](https://www.unicode.org/versions/).
|
|
15073
15066
|
* Unicode Consortium.
|
|
15074
15067
|
*
|
|
15075
|
-
* @param
|
|
15068
|
+
* @param code
|
|
15076
15069
|
* Code.
|
|
15077
|
-
* @returns
|
|
15070
|
+
* @returns
|
|
15078
15071
|
* Whether it matches.
|
|
15079
15072
|
*/
|
|
15080
|
-
|
|
15081
|
-
return micromark_util_character_asciiPunctuation(code) || micromark_util_character_unicodePunctuationInternal(code)
|
|
15082
|
-
}
|
|
15073
|
+
const micromark_util_character_unicodePunctuation = micromark_util_character_regexCheck(/\p{P}|\p{S}/u);
|
|
15083
15074
|
|
|
15084
15075
|
/**
|
|
15085
15076
|
* Check whether the character code represents Unicode whitespace.
|
|
@@ -15098,10 +15089,10 @@ function micromark_util_character_unicodePunctuation(code) {
|
|
|
15098
15089
|
*
|
|
15099
15090
|
* @param code
|
|
15100
15091
|
* Code.
|
|
15101
|
-
* @returns
|
|
15092
|
+
* @returns
|
|
15102
15093
|
* Whether it matches.
|
|
15103
15094
|
*/
|
|
15104
|
-
const micromark_util_character_unicodeWhitespace = micromark_util_character_regexCheck(/\s/)
|
|
15095
|
+
const micromark_util_character_unicodeWhitespace = micromark_util_character_regexCheck(/\s/);
|
|
15105
15096
|
|
|
15106
15097
|
/**
|
|
15107
15098
|
* Create a code check from a regex.
|
|
@@ -15110,7 +15101,7 @@ const micromark_util_character_unicodeWhitespace = micromark_util_character_rege
|
|
|
15110
15101
|
* @returns {(code: Code) => boolean}
|
|
15111
15102
|
*/
|
|
15112
15103
|
function micromark_util_character_regexCheck(regex) {
|
|
15113
|
-
return check
|
|
15104
|
+
return check;
|
|
15114
15105
|
|
|
15115
15106
|
/**
|
|
15116
15107
|
* Check whether a code matches the bound regex.
|
|
@@ -15121,10 +15112,9 @@ function micromark_util_character_regexCheck(regex) {
|
|
|
15121
15112
|
* Whether the character code matches the bound regex.
|
|
15122
15113
|
*/
|
|
15123
15114
|
function check(code) {
|
|
15124
|
-
return code !== null && code > -1 && regex.test(String.fromCharCode(code))
|
|
15115
|
+
return code !== null && code > -1 && regex.test(String.fromCharCode(code));
|
|
15125
15116
|
}
|
|
15126
15117
|
}
|
|
15127
|
-
|
|
15128
15118
|
;// CONCATENATED MODULE: ../node_modules/mdast-util-to-hast/node_modules/micromark-util-sanitize-uri/index.js
|
|
15129
15119
|
|
|
15130
15120
|
|
|
@@ -17740,6 +17730,8 @@ function ignore() {
|
|
|
17740
17730
|
* @typedef {import('mdast').Nodes} MdastNodes
|
|
17741
17731
|
* @typedef {import('mdast').Parents} MdastParents
|
|
17742
17732
|
*
|
|
17733
|
+
* @typedef {import('vfile').VFile} VFile
|
|
17734
|
+
*
|
|
17743
17735
|
* @typedef {import('./footer.js').FootnoteBackContentTemplate} FootnoteBackContentTemplate
|
|
17744
17736
|
* @typedef {import('./footer.js').FootnoteBackLabelTemplate} FootnoteBackLabelTemplate
|
|
17745
17737
|
*/
|
|
@@ -17785,6 +17777,8 @@ function ignore() {
|
|
|
17785
17777
|
* at that place.
|
|
17786
17778
|
* It can also break polyfills.
|
|
17787
17779
|
* Using a prefix solves these problems.
|
|
17780
|
+
* @property {VFile | null | undefined} [file]
|
|
17781
|
+
* Corresponding virtual file representing the input document (optional).
|
|
17788
17782
|
* @property {FootnoteBackContentTemplate | string | null | undefined} [footnoteBackContent]
|
|
17789
17783
|
* Content of the backreference back to references (default: `defaultFootnoteBackContent`).
|
|
17790
17784
|
*
|
|
@@ -18312,12 +18306,14 @@ function toHast(tree, options) {
|
|
|
18312
18306
|
/**
|
|
18313
18307
|
* @typedef {import('hast').Root} HastRoot
|
|
18314
18308
|
* @typedef {import('mdast').Root} MdastRoot
|
|
18315
|
-
* @typedef {import('mdast-util-to-hast').Options}
|
|
18309
|
+
* @typedef {import('mdast-util-to-hast').Options} ToHastOptions
|
|
18316
18310
|
* @typedef {import('unified').Processor} Processor
|
|
18317
18311
|
* @typedef {import('vfile').VFile} VFile
|
|
18318
18312
|
*/
|
|
18319
18313
|
|
|
18320
18314
|
/**
|
|
18315
|
+
* @typedef {Omit<ToHastOptions, 'file'>} Options
|
|
18316
|
+
*
|
|
18321
18317
|
* @callback TransformBridge
|
|
18322
18318
|
* Bridge-mode.
|
|
18323
18319
|
*
|
|
@@ -18446,7 +18442,9 @@ function remarkRehype(destination, options) {
|
|
|
18446
18442
|
*/
|
|
18447
18443
|
return async function (tree, file) {
|
|
18448
18444
|
// Cast because root in -> root out.
|
|
18449
|
-
const hastTree = /** @type {HastRoot} */ (
|
|
18445
|
+
const hastTree = /** @type {HastRoot} */ (
|
|
18446
|
+
toHast(tree, {file, ...options})
|
|
18447
|
+
)
|
|
18450
18448
|
await destination.run(hastTree, file)
|
|
18451
18449
|
}
|
|
18452
18450
|
}
|
|
@@ -18454,9 +18452,11 @@ function remarkRehype(destination, options) {
|
|
|
18454
18452
|
/**
|
|
18455
18453
|
* @type {TransformMutate}
|
|
18456
18454
|
*/
|
|
18457
|
-
return function (tree) {
|
|
18455
|
+
return function (tree, file) {
|
|
18458
18456
|
// Cast because root in -> root out.
|
|
18459
|
-
return /** @type {HastRoot} */ (
|
|
18457
|
+
return /** @type {HastRoot} */ (
|
|
18458
|
+
toHast(tree, {file, ...(options || destination)})
|
|
18459
|
+
)
|
|
18460
18460
|
}
|
|
18461
18461
|
}
|
|
18462
18462
|
|
|
@@ -18475,7 +18475,7 @@ function bail(error) {
|
|
|
18475
18475
|
}
|
|
18476
18476
|
|
|
18477
18477
|
// EXTERNAL MODULE: ../node_modules/extend/index.js
|
|
18478
|
-
var extend = __webpack_require__(
|
|
18478
|
+
var extend = __webpack_require__(909);
|
|
18479
18479
|
;// CONCATENATED MODULE: ../node_modules/unified/node_modules/is-plain-obj/index.js
|
|
18480
18480
|
function isPlainObject(value) {
|
|
18481
18481
|
if (typeof value !== 'object' || value === null) {
|
|
@@ -18486,23 +18486,44 @@ function isPlainObject(value) {
|
|
|
18486
18486
|
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
|
|
18487
18487
|
}
|
|
18488
18488
|
|
|
18489
|
-
;// CONCATENATED MODULE: ../node_modules/trough/index.js
|
|
18489
|
+
;// CONCATENATED MODULE: ../node_modules/trough/lib/index.js
|
|
18490
|
+
// To do: remove `void`s
|
|
18491
|
+
// To do: remove `null` from output of our APIs, allow it as user APIs.
|
|
18492
|
+
|
|
18490
18493
|
/**
|
|
18491
|
-
* @typedef {(error?: Error|null|undefined, ...output: Array<any>) => void} Callback
|
|
18494
|
+
* @typedef {(error?: Error | null | undefined, ...output: Array<any>) => void} Callback
|
|
18495
|
+
* Callback.
|
|
18496
|
+
*
|
|
18492
18497
|
* @typedef {(...input: Array<any>) => any} Middleware
|
|
18498
|
+
* Ware.
|
|
18499
|
+
*
|
|
18500
|
+
* @typedef Pipeline
|
|
18501
|
+
* Pipeline.
|
|
18502
|
+
* @property {Run} run
|
|
18503
|
+
* Run the pipeline.
|
|
18504
|
+
* @property {Use} use
|
|
18505
|
+
* Add middleware.
|
|
18493
18506
|
*
|
|
18494
18507
|
* @typedef {(...input: Array<any>) => void} Run
|
|
18495
18508
|
* Call all middleware.
|
|
18509
|
+
*
|
|
18510
|
+
* Calls `done` on completion with either an error or the output of the
|
|
18511
|
+
* last middleware.
|
|
18512
|
+
*
|
|
18513
|
+
* > 👉 **Note**: as the length of input defines whether async functions get a
|
|
18514
|
+
* > `next` function,
|
|
18515
|
+
* > it’s recommended to keep `input` at one value normally.
|
|
18516
|
+
|
|
18517
|
+
*
|
|
18496
18518
|
* @typedef {(fn: Middleware) => Pipeline} Use
|
|
18497
|
-
* Add
|
|
18498
|
-
* @typedef {{run: Run, use: Use}} Pipeline
|
|
18499
|
-
* Middleware.
|
|
18519
|
+
* Add middleware.
|
|
18500
18520
|
*/
|
|
18501
18521
|
|
|
18502
18522
|
/**
|
|
18503
18523
|
* Create new middleware.
|
|
18504
18524
|
*
|
|
18505
18525
|
* @returns {Pipeline}
|
|
18526
|
+
* Pipeline.
|
|
18506
18527
|
*/
|
|
18507
18528
|
function trough() {
|
|
18508
18529
|
/** @type {Array<Middleware>} */
|
|
@@ -18527,7 +18548,7 @@ function trough() {
|
|
|
18527
18548
|
/**
|
|
18528
18549
|
* Run the next `fn`, or we’re done.
|
|
18529
18550
|
*
|
|
18530
|
-
* @param {Error|null|undefined} error
|
|
18551
|
+
* @param {Error | null | undefined} error
|
|
18531
18552
|
* @param {Array<any>} output
|
|
18532
18553
|
*/
|
|
18533
18554
|
function next(error, ...output) {
|
|
@@ -18551,7 +18572,7 @@ function trough() {
|
|
|
18551
18572
|
|
|
18552
18573
|
// Next or done.
|
|
18553
18574
|
if (fn) {
|
|
18554
|
-
|
|
18575
|
+
lib_wrap(fn, next)(...output)
|
|
18555
18576
|
} else {
|
|
18556
18577
|
callback(null, ...output)
|
|
18557
18578
|
}
|
|
@@ -18572,14 +18593,38 @@ function trough() {
|
|
|
18572
18593
|
}
|
|
18573
18594
|
|
|
18574
18595
|
/**
|
|
18575
|
-
* Wrap `middleware
|
|
18576
|
-
*
|
|
18577
|
-
*
|
|
18596
|
+
* Wrap `middleware` into a uniform interface.
|
|
18597
|
+
*
|
|
18598
|
+
* You can pass all input to the resulting function.
|
|
18599
|
+
* `callback` is then called with the output of `middleware`.
|
|
18600
|
+
*
|
|
18601
|
+
* If `middleware` accepts more arguments than the later given in input,
|
|
18602
|
+
* an extra `done` function is passed to it after that input,
|
|
18603
|
+
* which must be called by `middleware`.
|
|
18604
|
+
*
|
|
18605
|
+
* The first value in `input` is the main input value.
|
|
18606
|
+
* All other input values are the rest input values.
|
|
18607
|
+
* The values given to `callback` are the input values,
|
|
18608
|
+
* merged with every non-nullish output value.
|
|
18609
|
+
*
|
|
18610
|
+
* * if `middleware` throws an error,
|
|
18611
|
+
* returns a promise that is rejected,
|
|
18612
|
+
* or calls the given `done` function with an error,
|
|
18613
|
+
* `callback` is called with that error
|
|
18614
|
+
* * if `middleware` returns a value or returns a promise that is resolved,
|
|
18615
|
+
* that value is the main output value
|
|
18616
|
+
* * if `middleware` calls `done`,
|
|
18617
|
+
* all non-nullish values except for the first one (the error) overwrite the
|
|
18618
|
+
* output values
|
|
18578
18619
|
*
|
|
18579
18620
|
* @param {Middleware} middleware
|
|
18621
|
+
* Function to wrap.
|
|
18580
18622
|
* @param {Callback} callback
|
|
18623
|
+
* Callback called with the output of `middleware`.
|
|
18624
|
+
* @returns {Run}
|
|
18625
|
+
* Wrapped middleware.
|
|
18581
18626
|
*/
|
|
18582
|
-
function
|
|
18627
|
+
function lib_wrap(middleware, callback) {
|
|
18583
18628
|
/** @type {boolean} */
|
|
18584
18629
|
let called
|
|
18585
18630
|
|
|
@@ -18617,7 +18662,7 @@ function trough_wrap(middleware, callback) {
|
|
|
18617
18662
|
}
|
|
18618
18663
|
|
|
18619
18664
|
if (!fnExpectsCallback) {
|
|
18620
|
-
if (result
|
|
18665
|
+
if (result && result.then && typeof result.then === 'function') {
|
|
18621
18666
|
result.then(then, done)
|
|
18622
18667
|
} else if (result instanceof Error) {
|
|
18623
18668
|
done(result)
|
|
@@ -18629,6 +18674,7 @@ function trough_wrap(middleware, callback) {
|
|
|
18629
18674
|
|
|
18630
18675
|
/**
|
|
18631
18676
|
* Call `callback`, only once.
|
|
18677
|
+
*
|
|
18632
18678
|
* @type {Callback}
|
|
18633
18679
|
*/
|
|
18634
18680
|
function done(error, ...output) {
|
|
@@ -21621,8 +21667,6 @@ function ccount(value, character) {
|
|
|
21621
21667
|
* @typedef {import('micromark-util-types').Code} Code
|
|
21622
21668
|
*/
|
|
21623
21669
|
|
|
21624
|
-
const node_modules_micromark_util_character_unicodePunctuationInternal = node_modules_micromark_util_character_regexCheck(/\p{P}/u)
|
|
21625
|
-
|
|
21626
21670
|
/**
|
|
21627
21671
|
* Check whether the character code represents an ASCII alpha (`a` through `z`,
|
|
21628
21672
|
* case insensitive).
|
|
@@ -21640,7 +21684,7 @@ const node_modules_micromark_util_character_unicodePunctuationInternal = node_mo
|
|
|
21640
21684
|
* @returns {boolean}
|
|
21641
21685
|
* Whether it matches.
|
|
21642
21686
|
*/
|
|
21643
|
-
const node_modules_micromark_util_character_asciiAlpha = node_modules_micromark_util_character_regexCheck(/[A-Za-z]/)
|
|
21687
|
+
const node_modules_micromark_util_character_asciiAlpha = node_modules_micromark_util_character_regexCheck(/[A-Za-z]/);
|
|
21644
21688
|
|
|
21645
21689
|
/**
|
|
21646
21690
|
* Check whether the character code represents an ASCII alphanumeric (`a`
|
|
@@ -21654,7 +21698,7 @@ const node_modules_micromark_util_character_asciiAlpha = node_modules_micromark_
|
|
|
21654
21698
|
* @returns {boolean}
|
|
21655
21699
|
* Whether it matches.
|
|
21656
21700
|
*/
|
|
21657
|
-
const node_modules_micromark_util_character_asciiAlphanumeric = node_modules_micromark_util_character_regexCheck(/[\dA-Za-z]/)
|
|
21701
|
+
const node_modules_micromark_util_character_asciiAlphanumeric = node_modules_micromark_util_character_regexCheck(/[\dA-Za-z]/);
|
|
21658
21702
|
|
|
21659
21703
|
/**
|
|
21660
21704
|
* Check whether the character code represents an ASCII atext.
|
|
@@ -21677,7 +21721,7 @@ const node_modules_micromark_util_character_asciiAlphanumeric = node_modules_mic
|
|
|
21677
21721
|
* @returns {boolean}
|
|
21678
21722
|
* Whether it matches.
|
|
21679
21723
|
*/
|
|
21680
|
-
const node_modules_micromark_util_character_asciiAtext = node_modules_micromark_util_character_regexCheck(/[#-'*+\--9=?A-Z^-~]/)
|
|
21724
|
+
const node_modules_micromark_util_character_asciiAtext = node_modules_micromark_util_character_regexCheck(/[#-'*+\--9=?A-Z^-~]/);
|
|
21681
21725
|
|
|
21682
21726
|
/**
|
|
21683
21727
|
* Check whether a character code is an ASCII control character.
|
|
@@ -21695,7 +21739,7 @@ function node_modules_micromark_util_character_asciiControl(code) {
|
|
|
21695
21739
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
21696
21740
|
// character DEL
|
|
21697
21741
|
code !== null && (code < 32 || code === 127)
|
|
21698
|
-
)
|
|
21742
|
+
);
|
|
21699
21743
|
}
|
|
21700
21744
|
|
|
21701
21745
|
/**
|
|
@@ -21709,7 +21753,7 @@ function node_modules_micromark_util_character_asciiControl(code) {
|
|
|
21709
21753
|
* @returns {boolean}
|
|
21710
21754
|
* Whether it matches.
|
|
21711
21755
|
*/
|
|
21712
|
-
const node_modules_micromark_util_character_asciiDigit = node_modules_micromark_util_character_regexCheck(/\d/)
|
|
21756
|
+
const node_modules_micromark_util_character_asciiDigit = node_modules_micromark_util_character_regexCheck(/\d/);
|
|
21713
21757
|
|
|
21714
21758
|
/**
|
|
21715
21759
|
* Check whether the character code represents an ASCII hex digit (`a` through
|
|
@@ -21729,7 +21773,7 @@ const node_modules_micromark_util_character_asciiDigit = node_modules_micromark_
|
|
|
21729
21773
|
* @returns {boolean}
|
|
21730
21774
|
* Whether it matches.
|
|
21731
21775
|
*/
|
|
21732
|
-
const node_modules_micromark_util_character_asciiHexDigit = node_modules_micromark_util_character_regexCheck(/[\dA-Fa-f]/)
|
|
21776
|
+
const node_modules_micromark_util_character_asciiHexDigit = node_modules_micromark_util_character_regexCheck(/[\dA-Fa-f]/);
|
|
21733
21777
|
|
|
21734
21778
|
/**
|
|
21735
21779
|
* Check whether the character code represents ASCII punctuation.
|
|
@@ -21744,7 +21788,7 @@ const node_modules_micromark_util_character_asciiHexDigit = node_modules_microma
|
|
|
21744
21788
|
* @returns {boolean}
|
|
21745
21789
|
* Whether it matches.
|
|
21746
21790
|
*/
|
|
21747
|
-
const node_modules_micromark_util_character_asciiPunctuation = node_modules_micromark_util_character_regexCheck(/[!-/:-@[-`{-~]/)
|
|
21791
|
+
const node_modules_micromark_util_character_asciiPunctuation = node_modules_micromark_util_character_regexCheck(/[!-/:-@[-`{-~]/);
|
|
21748
21792
|
|
|
21749
21793
|
/**
|
|
21750
21794
|
* Check whether a character code is a markdown line ending.
|
|
@@ -21762,7 +21806,7 @@ const node_modules_micromark_util_character_asciiPunctuation = node_modules_micr
|
|
|
21762
21806
|
* Whether it matches.
|
|
21763
21807
|
*/
|
|
21764
21808
|
function node_modules_micromark_util_character_markdownLineEnding(code) {
|
|
21765
|
-
return code !== null && code < -2
|
|
21809
|
+
return code !== null && code < -2;
|
|
21766
21810
|
}
|
|
21767
21811
|
|
|
21768
21812
|
/**
|
|
@@ -21775,7 +21819,7 @@ function node_modules_micromark_util_character_markdownLineEnding(code) {
|
|
|
21775
21819
|
* Whether it matches.
|
|
21776
21820
|
*/
|
|
21777
21821
|
function node_modules_micromark_util_character_markdownLineEndingOrSpace(code) {
|
|
21778
|
-
return code !== null && (code < 0 || code === 32)
|
|
21822
|
+
return code !== null && (code < 0 || code === 32);
|
|
21779
21823
|
}
|
|
21780
21824
|
|
|
21781
21825
|
/**
|
|
@@ -21794,7 +21838,7 @@ function node_modules_micromark_util_character_markdownLineEndingOrSpace(code) {
|
|
|
21794
21838
|
* Whether it matches.
|
|
21795
21839
|
*/
|
|
21796
21840
|
function node_modules_micromark_util_character_markdownSpace(code) {
|
|
21797
|
-
return code === -2 || code === -1 || code === 32
|
|
21841
|
+
return code === -2 || code === -1 || code === 32;
|
|
21798
21842
|
}
|
|
21799
21843
|
|
|
21800
21844
|
// Size note: removing ASCII from the regex and using `asciiPunctuation` here
|
|
@@ -21813,14 +21857,12 @@ function node_modules_micromark_util_character_markdownSpace(code) {
|
|
|
21813
21857
|
* [The Unicode Standard](https://www.unicode.org/versions/).
|
|
21814
21858
|
* Unicode Consortium.
|
|
21815
21859
|
*
|
|
21816
|
-
* @param
|
|
21860
|
+
* @param code
|
|
21817
21861
|
* Code.
|
|
21818
|
-
* @returns
|
|
21862
|
+
* @returns
|
|
21819
21863
|
* Whether it matches.
|
|
21820
21864
|
*/
|
|
21821
|
-
|
|
21822
|
-
return node_modules_micromark_util_character_asciiPunctuation(code) || node_modules_micromark_util_character_unicodePunctuationInternal(code)
|
|
21823
|
-
}
|
|
21865
|
+
const node_modules_micromark_util_character_unicodePunctuation = node_modules_micromark_util_character_regexCheck(/\p{P}|\p{S}/u);
|
|
21824
21866
|
|
|
21825
21867
|
/**
|
|
21826
21868
|
* Check whether the character code represents Unicode whitespace.
|
|
@@ -21839,10 +21881,10 @@ function node_modules_micromark_util_character_unicodePunctuation(code) {
|
|
|
21839
21881
|
*
|
|
21840
21882
|
* @param code
|
|
21841
21883
|
* Code.
|
|
21842
|
-
* @returns
|
|
21884
|
+
* @returns
|
|
21843
21885
|
* Whether it matches.
|
|
21844
21886
|
*/
|
|
21845
|
-
const node_modules_micromark_util_character_unicodeWhitespace = node_modules_micromark_util_character_regexCheck(/\s/)
|
|
21887
|
+
const node_modules_micromark_util_character_unicodeWhitespace = node_modules_micromark_util_character_regexCheck(/\s/);
|
|
21846
21888
|
|
|
21847
21889
|
/**
|
|
21848
21890
|
* Create a code check from a regex.
|
|
@@ -21851,7 +21893,7 @@ const node_modules_micromark_util_character_unicodeWhitespace = node_modules_mic
|
|
|
21851
21893
|
* @returns {(code: Code) => boolean}
|
|
21852
21894
|
*/
|
|
21853
21895
|
function node_modules_micromark_util_character_regexCheck(regex) {
|
|
21854
|
-
return check
|
|
21896
|
+
return check;
|
|
21855
21897
|
|
|
21856
21898
|
/**
|
|
21857
21899
|
* Check whether a code matches the bound regex.
|
|
@@ -21862,10 +21904,9 @@ function node_modules_micromark_util_character_regexCheck(regex) {
|
|
|
21862
21904
|
* Whether the character code matches the bound regex.
|
|
21863
21905
|
*/
|
|
21864
21906
|
function check(code) {
|
|
21865
|
-
return code !== null && code > -1 && regex.test(String.fromCharCode(code))
|
|
21907
|
+
return code !== null && code > -1 && regex.test(String.fromCharCode(code));
|
|
21866
21908
|
}
|
|
21867
21909
|
}
|
|
21868
|
-
|
|
21869
21910
|
;// CONCATENATED MODULE: ../node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js
|
|
21870
21911
|
function escapeStringRegexp(string) {
|
|
21871
21912
|
if (typeof string !== 'string') {
|
|
@@ -24658,6 +24699,7 @@ function paragraph_paragraph(node, _, state, info) {
|
|
|
24658
24699
|
|
|
24659
24700
|
;// CONCATENATED MODULE: ../node_modules/mdast-util-phrasing/lib/index.js
|
|
24660
24701
|
/**
|
|
24702
|
+
* @typedef {import('mdast').Html} Html
|
|
24661
24703
|
* @typedef {import('mdast').PhrasingContent} PhrasingContent
|
|
24662
24704
|
*/
|
|
24663
24705
|
|
|
@@ -24675,21 +24717,30 @@ function paragraph_paragraph(node, _, state, info) {
|
|
|
24675
24717
|
*/
|
|
24676
24718
|
|
|
24677
24719
|
const phrasing =
|
|
24678
|
-
/** @type {(node?: unknown) => node is PhrasingContent} */
|
|
24720
|
+
/** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
|
|
24679
24721
|
(
|
|
24680
24722
|
convert([
|
|
24681
24723
|
'break',
|
|
24682
24724
|
'delete',
|
|
24683
24725
|
'emphasis',
|
|
24726
|
+
// To do: next major: removed since footnotes were added to GFM.
|
|
24684
24727
|
'footnote',
|
|
24685
24728
|
'footnoteReference',
|
|
24686
24729
|
'image',
|
|
24687
24730
|
'imageReference',
|
|
24688
24731
|
'inlineCode',
|
|
24732
|
+
// Enabled by `mdast-util-math`:
|
|
24733
|
+
'inlineMath',
|
|
24689
24734
|
'link',
|
|
24690
24735
|
'linkReference',
|
|
24736
|
+
// Enabled by `mdast-util-mdx`:
|
|
24737
|
+
'mdxJsxTextElement',
|
|
24738
|
+
// Enabled by `mdast-util-mdx`:
|
|
24739
|
+
'mdxTextExpression',
|
|
24691
24740
|
'strong',
|
|
24692
|
-
'text'
|
|
24741
|
+
'text',
|
|
24742
|
+
// Enabled by `mdast-util-directive`:
|
|
24743
|
+
'textDirective'
|
|
24693
24744
|
])
|
|
24694
24745
|
)
|
|
24695
24746
|
|
|
@@ -25635,8 +25686,6 @@ function micromark_util_combine_extensions_htmlExtension(all, extension) {
|
|
|
25635
25686
|
* @typedef {import('micromark-util-types').Code} Code
|
|
25636
25687
|
*/
|
|
25637
25688
|
|
|
25638
|
-
const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_unicodePunctuationInternal = micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_regexCheck(/\p{P}/u)
|
|
25639
|
-
|
|
25640
25689
|
/**
|
|
25641
25690
|
* Check whether the character code represents an ASCII alpha (`a` through `z`,
|
|
25642
25691
|
* case insensitive).
|
|
@@ -25654,7 +25703,7 @@ const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_chara
|
|
|
25654
25703
|
* @returns {boolean}
|
|
25655
25704
|
* Whether it matches.
|
|
25656
25705
|
*/
|
|
25657
|
-
const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_asciiAlpha = micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_regexCheck(/[A-Za-z]/)
|
|
25706
|
+
const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_asciiAlpha = micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_regexCheck(/[A-Za-z]/);
|
|
25658
25707
|
|
|
25659
25708
|
/**
|
|
25660
25709
|
* Check whether the character code represents an ASCII alphanumeric (`a`
|
|
@@ -25668,7 +25717,7 @@ const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_chara
|
|
|
25668
25717
|
* @returns {boolean}
|
|
25669
25718
|
* Whether it matches.
|
|
25670
25719
|
*/
|
|
25671
|
-
const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_asciiAlphanumeric = micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_regexCheck(/[\dA-Za-z]/)
|
|
25720
|
+
const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_asciiAlphanumeric = micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_regexCheck(/[\dA-Za-z]/);
|
|
25672
25721
|
|
|
25673
25722
|
/**
|
|
25674
25723
|
* Check whether the character code represents an ASCII atext.
|
|
@@ -25691,7 +25740,7 @@ const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_chara
|
|
|
25691
25740
|
* @returns {boolean}
|
|
25692
25741
|
* Whether it matches.
|
|
25693
25742
|
*/
|
|
25694
|
-
const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_asciiAtext = micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_regexCheck(/[#-'*+\--9=?A-Z^-~]/)
|
|
25743
|
+
const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_asciiAtext = micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_regexCheck(/[#-'*+\--9=?A-Z^-~]/);
|
|
25695
25744
|
|
|
25696
25745
|
/**
|
|
25697
25746
|
* Check whether a character code is an ASCII control character.
|
|
@@ -25709,7 +25758,7 @@ function micromark_extension_gfm_autolink_literal_node_modules_micromark_util_ch
|
|
|
25709
25758
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
25710
25759
|
// character DEL
|
|
25711
25760
|
code !== null && (code < 32 || code === 127)
|
|
25712
|
-
)
|
|
25761
|
+
);
|
|
25713
25762
|
}
|
|
25714
25763
|
|
|
25715
25764
|
/**
|
|
@@ -25723,7 +25772,7 @@ function micromark_extension_gfm_autolink_literal_node_modules_micromark_util_ch
|
|
|
25723
25772
|
* @returns {boolean}
|
|
25724
25773
|
* Whether it matches.
|
|
25725
25774
|
*/
|
|
25726
|
-
const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_asciiDigit = micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_regexCheck(/\d/)
|
|
25775
|
+
const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_asciiDigit = micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_regexCheck(/\d/);
|
|
25727
25776
|
|
|
25728
25777
|
/**
|
|
25729
25778
|
* Check whether the character code represents an ASCII hex digit (`a` through
|
|
@@ -25743,7 +25792,7 @@ const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_chara
|
|
|
25743
25792
|
* @returns {boolean}
|
|
25744
25793
|
* Whether it matches.
|
|
25745
25794
|
*/
|
|
25746
|
-
const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_asciiHexDigit = micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_regexCheck(/[\dA-Fa-f]/)
|
|
25795
|
+
const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_asciiHexDigit = micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_regexCheck(/[\dA-Fa-f]/);
|
|
25747
25796
|
|
|
25748
25797
|
/**
|
|
25749
25798
|
* Check whether the character code represents ASCII punctuation.
|
|
@@ -25758,7 +25807,7 @@ const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_chara
|
|
|
25758
25807
|
* @returns {boolean}
|
|
25759
25808
|
* Whether it matches.
|
|
25760
25809
|
*/
|
|
25761
|
-
const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_asciiPunctuation = micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_regexCheck(/[!-/:-@[-`{-~]/)
|
|
25810
|
+
const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_asciiPunctuation = micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_regexCheck(/[!-/:-@[-`{-~]/);
|
|
25762
25811
|
|
|
25763
25812
|
/**
|
|
25764
25813
|
* Check whether a character code is a markdown line ending.
|
|
@@ -25776,7 +25825,7 @@ const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_chara
|
|
|
25776
25825
|
* Whether it matches.
|
|
25777
25826
|
*/
|
|
25778
25827
|
function micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_markdownLineEnding(code) {
|
|
25779
|
-
return code !== null && code < -2
|
|
25828
|
+
return code !== null && code < -2;
|
|
25780
25829
|
}
|
|
25781
25830
|
|
|
25782
25831
|
/**
|
|
@@ -25789,7 +25838,7 @@ function micromark_extension_gfm_autolink_literal_node_modules_micromark_util_ch
|
|
|
25789
25838
|
* Whether it matches.
|
|
25790
25839
|
*/
|
|
25791
25840
|
function micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_markdownLineEndingOrSpace(code) {
|
|
25792
|
-
return code !== null && (code < 0 || code === 32)
|
|
25841
|
+
return code !== null && (code < 0 || code === 32);
|
|
25793
25842
|
}
|
|
25794
25843
|
|
|
25795
25844
|
/**
|
|
@@ -25808,7 +25857,7 @@ function micromark_extension_gfm_autolink_literal_node_modules_micromark_util_ch
|
|
|
25808
25857
|
* Whether it matches.
|
|
25809
25858
|
*/
|
|
25810
25859
|
function micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_markdownSpace(code) {
|
|
25811
|
-
return code === -2 || code === -1 || code === 32
|
|
25860
|
+
return code === -2 || code === -1 || code === 32;
|
|
25812
25861
|
}
|
|
25813
25862
|
|
|
25814
25863
|
// Size note: removing ASCII from the regex and using `asciiPunctuation` here
|
|
@@ -25827,14 +25876,12 @@ function micromark_extension_gfm_autolink_literal_node_modules_micromark_util_ch
|
|
|
25827
25876
|
* [The Unicode Standard](https://www.unicode.org/versions/).
|
|
25828
25877
|
* Unicode Consortium.
|
|
25829
25878
|
*
|
|
25830
|
-
* @param
|
|
25879
|
+
* @param code
|
|
25831
25880
|
* Code.
|
|
25832
|
-
* @returns
|
|
25881
|
+
* @returns
|
|
25833
25882
|
* Whether it matches.
|
|
25834
25883
|
*/
|
|
25835
|
-
|
|
25836
|
-
return micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_asciiPunctuation(code) || micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_unicodePunctuationInternal(code)
|
|
25837
|
-
}
|
|
25884
|
+
const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_unicodePunctuation = micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_regexCheck(/\p{P}|\p{S}/u);
|
|
25838
25885
|
|
|
25839
25886
|
/**
|
|
25840
25887
|
* Check whether the character code represents Unicode whitespace.
|
|
@@ -25853,10 +25900,10 @@ function micromark_extension_gfm_autolink_literal_node_modules_micromark_util_ch
|
|
|
25853
25900
|
*
|
|
25854
25901
|
* @param code
|
|
25855
25902
|
* Code.
|
|
25856
|
-
* @returns
|
|
25903
|
+
* @returns
|
|
25857
25904
|
* Whether it matches.
|
|
25858
25905
|
*/
|
|
25859
|
-
const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_unicodeWhitespace = micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_regexCheck(/\s/)
|
|
25906
|
+
const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_unicodeWhitespace = micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_regexCheck(/\s/);
|
|
25860
25907
|
|
|
25861
25908
|
/**
|
|
25862
25909
|
* Create a code check from a regex.
|
|
@@ -25865,7 +25912,7 @@ const micromark_extension_gfm_autolink_literal_node_modules_micromark_util_chara
|
|
|
25865
25912
|
* @returns {(code: Code) => boolean}
|
|
25866
25913
|
*/
|
|
25867
25914
|
function micromark_extension_gfm_autolink_literal_node_modules_micromark_util_character_regexCheck(regex) {
|
|
25868
|
-
return check
|
|
25915
|
+
return check;
|
|
25869
25916
|
|
|
25870
25917
|
/**
|
|
25871
25918
|
* Check whether a code matches the bound regex.
|
|
@@ -25876,10 +25923,9 @@ function micromark_extension_gfm_autolink_literal_node_modules_micromark_util_ch
|
|
|
25876
25923
|
* Whether the character code matches the bound regex.
|
|
25877
25924
|
*/
|
|
25878
25925
|
function check(code) {
|
|
25879
|
-
return code !== null && code > -1 && regex.test(String.fromCharCode(code))
|
|
25926
|
+
return code !== null && code > -1 && regex.test(String.fromCharCode(code));
|
|
25880
25927
|
}
|
|
25881
25928
|
}
|
|
25882
|
-
|
|
25883
25929
|
;// CONCATENATED MODULE: ../node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js
|
|
25884
25930
|
/**
|
|
25885
25931
|
* @typedef {import('micromark-util-types').Code} Code
|
|
@@ -26837,8 +26883,6 @@ function previousUnbalanced(events) {
|
|
|
26837
26883
|
* @typedef {import('micromark-util-types').Code} Code
|
|
26838
26884
|
*/
|
|
26839
26885
|
|
|
26840
|
-
const micromark_extension_gfm_footnote_node_modules_micromark_util_character_unicodePunctuationInternal = micromark_extension_gfm_footnote_node_modules_micromark_util_character_regexCheck(/\p{P}/u)
|
|
26841
|
-
|
|
26842
26886
|
/**
|
|
26843
26887
|
* Check whether the character code represents an ASCII alpha (`a` through `z`,
|
|
26844
26888
|
* case insensitive).
|
|
@@ -26856,7 +26900,7 @@ const micromark_extension_gfm_footnote_node_modules_micromark_util_character_uni
|
|
|
26856
26900
|
* @returns {boolean}
|
|
26857
26901
|
* Whether it matches.
|
|
26858
26902
|
*/
|
|
26859
|
-
const micromark_extension_gfm_footnote_node_modules_micromark_util_character_asciiAlpha = micromark_extension_gfm_footnote_node_modules_micromark_util_character_regexCheck(/[A-Za-z]/)
|
|
26903
|
+
const micromark_extension_gfm_footnote_node_modules_micromark_util_character_asciiAlpha = micromark_extension_gfm_footnote_node_modules_micromark_util_character_regexCheck(/[A-Za-z]/);
|
|
26860
26904
|
|
|
26861
26905
|
/**
|
|
26862
26906
|
* Check whether the character code represents an ASCII alphanumeric (`a`
|
|
@@ -26870,7 +26914,7 @@ const micromark_extension_gfm_footnote_node_modules_micromark_util_character_asc
|
|
|
26870
26914
|
* @returns {boolean}
|
|
26871
26915
|
* Whether it matches.
|
|
26872
26916
|
*/
|
|
26873
|
-
const micromark_extension_gfm_footnote_node_modules_micromark_util_character_asciiAlphanumeric = micromark_extension_gfm_footnote_node_modules_micromark_util_character_regexCheck(/[\dA-Za-z]/)
|
|
26917
|
+
const micromark_extension_gfm_footnote_node_modules_micromark_util_character_asciiAlphanumeric = micromark_extension_gfm_footnote_node_modules_micromark_util_character_regexCheck(/[\dA-Za-z]/);
|
|
26874
26918
|
|
|
26875
26919
|
/**
|
|
26876
26920
|
* Check whether the character code represents an ASCII atext.
|
|
@@ -26893,7 +26937,7 @@ const micromark_extension_gfm_footnote_node_modules_micromark_util_character_asc
|
|
|
26893
26937
|
* @returns {boolean}
|
|
26894
26938
|
* Whether it matches.
|
|
26895
26939
|
*/
|
|
26896
|
-
const micromark_extension_gfm_footnote_node_modules_micromark_util_character_asciiAtext = micromark_extension_gfm_footnote_node_modules_micromark_util_character_regexCheck(/[#-'*+\--9=?A-Z^-~]/)
|
|
26940
|
+
const micromark_extension_gfm_footnote_node_modules_micromark_util_character_asciiAtext = micromark_extension_gfm_footnote_node_modules_micromark_util_character_regexCheck(/[#-'*+\--9=?A-Z^-~]/);
|
|
26897
26941
|
|
|
26898
26942
|
/**
|
|
26899
26943
|
* Check whether a character code is an ASCII control character.
|
|
@@ -26911,7 +26955,7 @@ function micromark_extension_gfm_footnote_node_modules_micromark_util_character_
|
|
|
26911
26955
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
26912
26956
|
// character DEL
|
|
26913
26957
|
code !== null && (code < 32 || code === 127)
|
|
26914
|
-
)
|
|
26958
|
+
);
|
|
26915
26959
|
}
|
|
26916
26960
|
|
|
26917
26961
|
/**
|
|
@@ -26925,7 +26969,7 @@ function micromark_extension_gfm_footnote_node_modules_micromark_util_character_
|
|
|
26925
26969
|
* @returns {boolean}
|
|
26926
26970
|
* Whether it matches.
|
|
26927
26971
|
*/
|
|
26928
|
-
const micromark_extension_gfm_footnote_node_modules_micromark_util_character_asciiDigit = micromark_extension_gfm_footnote_node_modules_micromark_util_character_regexCheck(/\d/)
|
|
26972
|
+
const micromark_extension_gfm_footnote_node_modules_micromark_util_character_asciiDigit = micromark_extension_gfm_footnote_node_modules_micromark_util_character_regexCheck(/\d/);
|
|
26929
26973
|
|
|
26930
26974
|
/**
|
|
26931
26975
|
* Check whether the character code represents an ASCII hex digit (`a` through
|
|
@@ -26945,7 +26989,7 @@ const micromark_extension_gfm_footnote_node_modules_micromark_util_character_asc
|
|
|
26945
26989
|
* @returns {boolean}
|
|
26946
26990
|
* Whether it matches.
|
|
26947
26991
|
*/
|
|
26948
|
-
const micromark_extension_gfm_footnote_node_modules_micromark_util_character_asciiHexDigit = micromark_extension_gfm_footnote_node_modules_micromark_util_character_regexCheck(/[\dA-Fa-f]/)
|
|
26992
|
+
const micromark_extension_gfm_footnote_node_modules_micromark_util_character_asciiHexDigit = micromark_extension_gfm_footnote_node_modules_micromark_util_character_regexCheck(/[\dA-Fa-f]/);
|
|
26949
26993
|
|
|
26950
26994
|
/**
|
|
26951
26995
|
* Check whether the character code represents ASCII punctuation.
|
|
@@ -26960,7 +27004,7 @@ const micromark_extension_gfm_footnote_node_modules_micromark_util_character_asc
|
|
|
26960
27004
|
* @returns {boolean}
|
|
26961
27005
|
* Whether it matches.
|
|
26962
27006
|
*/
|
|
26963
|
-
const micromark_extension_gfm_footnote_node_modules_micromark_util_character_asciiPunctuation = micromark_extension_gfm_footnote_node_modules_micromark_util_character_regexCheck(/[!-/:-@[-`{-~]/)
|
|
27007
|
+
const micromark_extension_gfm_footnote_node_modules_micromark_util_character_asciiPunctuation = micromark_extension_gfm_footnote_node_modules_micromark_util_character_regexCheck(/[!-/:-@[-`{-~]/);
|
|
26964
27008
|
|
|
26965
27009
|
/**
|
|
26966
27010
|
* Check whether a character code is a markdown line ending.
|
|
@@ -26978,7 +27022,7 @@ const micromark_extension_gfm_footnote_node_modules_micromark_util_character_asc
|
|
|
26978
27022
|
* Whether it matches.
|
|
26979
27023
|
*/
|
|
26980
27024
|
function micromark_extension_gfm_footnote_node_modules_micromark_util_character_markdownLineEnding(code) {
|
|
26981
|
-
return code !== null && code < -2
|
|
27025
|
+
return code !== null && code < -2;
|
|
26982
27026
|
}
|
|
26983
27027
|
|
|
26984
27028
|
/**
|
|
@@ -26991,7 +27035,7 @@ function micromark_extension_gfm_footnote_node_modules_micromark_util_character_
|
|
|
26991
27035
|
* Whether it matches.
|
|
26992
27036
|
*/
|
|
26993
27037
|
function micromark_extension_gfm_footnote_node_modules_micromark_util_character_markdownLineEndingOrSpace(code) {
|
|
26994
|
-
return code !== null && (code < 0 || code === 32)
|
|
27038
|
+
return code !== null && (code < 0 || code === 32);
|
|
26995
27039
|
}
|
|
26996
27040
|
|
|
26997
27041
|
/**
|
|
@@ -27010,7 +27054,7 @@ function micromark_extension_gfm_footnote_node_modules_micromark_util_character_
|
|
|
27010
27054
|
* Whether it matches.
|
|
27011
27055
|
*/
|
|
27012
27056
|
function micromark_extension_gfm_footnote_node_modules_micromark_util_character_markdownSpace(code) {
|
|
27013
|
-
return code === -2 || code === -1 || code === 32
|
|
27057
|
+
return code === -2 || code === -1 || code === 32;
|
|
27014
27058
|
}
|
|
27015
27059
|
|
|
27016
27060
|
// Size note: removing ASCII from the regex and using `asciiPunctuation` here
|
|
@@ -27029,14 +27073,12 @@ function micromark_extension_gfm_footnote_node_modules_micromark_util_character_
|
|
|
27029
27073
|
* [The Unicode Standard](https://www.unicode.org/versions/).
|
|
27030
27074
|
* Unicode Consortium.
|
|
27031
27075
|
*
|
|
27032
|
-
* @param
|
|
27076
|
+
* @param code
|
|
27033
27077
|
* Code.
|
|
27034
|
-
* @returns
|
|
27078
|
+
* @returns
|
|
27035
27079
|
* Whether it matches.
|
|
27036
27080
|
*/
|
|
27037
|
-
|
|
27038
|
-
return micromark_extension_gfm_footnote_node_modules_micromark_util_character_asciiPunctuation(code) || micromark_extension_gfm_footnote_node_modules_micromark_util_character_unicodePunctuationInternal(code)
|
|
27039
|
-
}
|
|
27081
|
+
const micromark_extension_gfm_footnote_node_modules_micromark_util_character_unicodePunctuation = micromark_extension_gfm_footnote_node_modules_micromark_util_character_regexCheck(/\p{P}|\p{S}/u);
|
|
27040
27082
|
|
|
27041
27083
|
/**
|
|
27042
27084
|
* Check whether the character code represents Unicode whitespace.
|
|
@@ -27055,10 +27097,10 @@ function micromark_extension_gfm_footnote_node_modules_micromark_util_character_
|
|
|
27055
27097
|
*
|
|
27056
27098
|
* @param code
|
|
27057
27099
|
* Code.
|
|
27058
|
-
* @returns
|
|
27100
|
+
* @returns
|
|
27059
27101
|
* Whether it matches.
|
|
27060
27102
|
*/
|
|
27061
|
-
const micromark_extension_gfm_footnote_node_modules_micromark_util_character_unicodeWhitespace = micromark_extension_gfm_footnote_node_modules_micromark_util_character_regexCheck(/\s/)
|
|
27103
|
+
const micromark_extension_gfm_footnote_node_modules_micromark_util_character_unicodeWhitespace = micromark_extension_gfm_footnote_node_modules_micromark_util_character_regexCheck(/\s/);
|
|
27062
27104
|
|
|
27063
27105
|
/**
|
|
27064
27106
|
* Create a code check from a regex.
|
|
@@ -27067,7 +27109,7 @@ const micromark_extension_gfm_footnote_node_modules_micromark_util_character_uni
|
|
|
27067
27109
|
* @returns {(code: Code) => boolean}
|
|
27068
27110
|
*/
|
|
27069
27111
|
function micromark_extension_gfm_footnote_node_modules_micromark_util_character_regexCheck(regex) {
|
|
27070
|
-
return check
|
|
27112
|
+
return check;
|
|
27071
27113
|
|
|
27072
27114
|
/**
|
|
27073
27115
|
* Check whether a code matches the bound regex.
|
|
@@ -27078,10 +27120,9 @@ function micromark_extension_gfm_footnote_node_modules_micromark_util_character_
|
|
|
27078
27120
|
* Whether the character code matches the bound regex.
|
|
27079
27121
|
*/
|
|
27080
27122
|
function check(code) {
|
|
27081
|
-
return code !== null && code > -1 && regex.test(String.fromCharCode(code))
|
|
27123
|
+
return code !== null && code > -1 && regex.test(String.fromCharCode(code));
|
|
27082
27124
|
}
|
|
27083
27125
|
}
|
|
27084
|
-
|
|
27085
27126
|
;// CONCATENATED MODULE: ../node_modules/micromark-extension-gfm-footnote/node_modules/micromark-factory-space/index.js
|
|
27086
27127
|
/**
|
|
27087
27128
|
* @typedef {import('micromark-util-types').Effects} Effects
|
|
@@ -27869,8 +27910,6 @@ function node_modules_micromark_util_chunked_push(list, items) {
|
|
|
27869
27910
|
* @typedef {import('micromark-util-types').Code} Code
|
|
27870
27911
|
*/
|
|
27871
27912
|
|
|
27872
|
-
const micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_unicodePunctuationInternal = micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_regexCheck(/\p{P}/u)
|
|
27873
|
-
|
|
27874
27913
|
/**
|
|
27875
27914
|
* Check whether the character code represents an ASCII alpha (`a` through `z`,
|
|
27876
27915
|
* case insensitive).
|
|
@@ -27888,7 +27927,7 @@ const micromark_extension_gfm_strikethrough_node_modules_micromark_util_characte
|
|
|
27888
27927
|
* @returns {boolean}
|
|
27889
27928
|
* Whether it matches.
|
|
27890
27929
|
*/
|
|
27891
|
-
const micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_asciiAlpha = micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_regexCheck(/[A-Za-z]/)
|
|
27930
|
+
const micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_asciiAlpha = micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_regexCheck(/[A-Za-z]/);
|
|
27892
27931
|
|
|
27893
27932
|
/**
|
|
27894
27933
|
* Check whether the character code represents an ASCII alphanumeric (`a`
|
|
@@ -27902,7 +27941,7 @@ const micromark_extension_gfm_strikethrough_node_modules_micromark_util_characte
|
|
|
27902
27941
|
* @returns {boolean}
|
|
27903
27942
|
* Whether it matches.
|
|
27904
27943
|
*/
|
|
27905
|
-
const micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_asciiAlphanumeric = micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_regexCheck(/[\dA-Za-z]/)
|
|
27944
|
+
const micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_asciiAlphanumeric = micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_regexCheck(/[\dA-Za-z]/);
|
|
27906
27945
|
|
|
27907
27946
|
/**
|
|
27908
27947
|
* Check whether the character code represents an ASCII atext.
|
|
@@ -27925,7 +27964,7 @@ const micromark_extension_gfm_strikethrough_node_modules_micromark_util_characte
|
|
|
27925
27964
|
* @returns {boolean}
|
|
27926
27965
|
* Whether it matches.
|
|
27927
27966
|
*/
|
|
27928
|
-
const micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_asciiAtext = micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_regexCheck(/[#-'*+\--9=?A-Z^-~]/)
|
|
27967
|
+
const micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_asciiAtext = micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_regexCheck(/[#-'*+\--9=?A-Z^-~]/);
|
|
27929
27968
|
|
|
27930
27969
|
/**
|
|
27931
27970
|
* Check whether a character code is an ASCII control character.
|
|
@@ -27943,7 +27982,7 @@ function micromark_extension_gfm_strikethrough_node_modules_micromark_util_chara
|
|
|
27943
27982
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
27944
27983
|
// character DEL
|
|
27945
27984
|
code !== null && (code < 32 || code === 127)
|
|
27946
|
-
)
|
|
27985
|
+
);
|
|
27947
27986
|
}
|
|
27948
27987
|
|
|
27949
27988
|
/**
|
|
@@ -27957,7 +27996,7 @@ function micromark_extension_gfm_strikethrough_node_modules_micromark_util_chara
|
|
|
27957
27996
|
* @returns {boolean}
|
|
27958
27997
|
* Whether it matches.
|
|
27959
27998
|
*/
|
|
27960
|
-
const micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_asciiDigit = micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_regexCheck(/\d/)
|
|
27999
|
+
const micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_asciiDigit = micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_regexCheck(/\d/);
|
|
27961
28000
|
|
|
27962
28001
|
/**
|
|
27963
28002
|
* Check whether the character code represents an ASCII hex digit (`a` through
|
|
@@ -27977,7 +28016,7 @@ const micromark_extension_gfm_strikethrough_node_modules_micromark_util_characte
|
|
|
27977
28016
|
* @returns {boolean}
|
|
27978
28017
|
* Whether it matches.
|
|
27979
28018
|
*/
|
|
27980
|
-
const micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_asciiHexDigit = micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_regexCheck(/[\dA-Fa-f]/)
|
|
28019
|
+
const micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_asciiHexDigit = micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_regexCheck(/[\dA-Fa-f]/);
|
|
27981
28020
|
|
|
27982
28021
|
/**
|
|
27983
28022
|
* Check whether the character code represents ASCII punctuation.
|
|
@@ -27992,7 +28031,7 @@ const micromark_extension_gfm_strikethrough_node_modules_micromark_util_characte
|
|
|
27992
28031
|
* @returns {boolean}
|
|
27993
28032
|
* Whether it matches.
|
|
27994
28033
|
*/
|
|
27995
|
-
const micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_asciiPunctuation = micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_regexCheck(/[!-/:-@[-`{-~]/)
|
|
28034
|
+
const micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_asciiPunctuation = micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_regexCheck(/[!-/:-@[-`{-~]/);
|
|
27996
28035
|
|
|
27997
28036
|
/**
|
|
27998
28037
|
* Check whether a character code is a markdown line ending.
|
|
@@ -28010,7 +28049,7 @@ const micromark_extension_gfm_strikethrough_node_modules_micromark_util_characte
|
|
|
28010
28049
|
* Whether it matches.
|
|
28011
28050
|
*/
|
|
28012
28051
|
function micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_markdownLineEnding(code) {
|
|
28013
|
-
return code !== null && code < -2
|
|
28052
|
+
return code !== null && code < -2;
|
|
28014
28053
|
}
|
|
28015
28054
|
|
|
28016
28055
|
/**
|
|
@@ -28023,7 +28062,7 @@ function micromark_extension_gfm_strikethrough_node_modules_micromark_util_chara
|
|
|
28023
28062
|
* Whether it matches.
|
|
28024
28063
|
*/
|
|
28025
28064
|
function micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_markdownLineEndingOrSpace(code) {
|
|
28026
|
-
return code !== null && (code < 0 || code === 32)
|
|
28065
|
+
return code !== null && (code < 0 || code === 32);
|
|
28027
28066
|
}
|
|
28028
28067
|
|
|
28029
28068
|
/**
|
|
@@ -28042,7 +28081,7 @@ function micromark_extension_gfm_strikethrough_node_modules_micromark_util_chara
|
|
|
28042
28081
|
* Whether it matches.
|
|
28043
28082
|
*/
|
|
28044
28083
|
function micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_markdownSpace(code) {
|
|
28045
|
-
return code === -2 || code === -1 || code === 32
|
|
28084
|
+
return code === -2 || code === -1 || code === 32;
|
|
28046
28085
|
}
|
|
28047
28086
|
|
|
28048
28087
|
// Size note: removing ASCII from the regex and using `asciiPunctuation` here
|
|
@@ -28061,14 +28100,12 @@ function micromark_extension_gfm_strikethrough_node_modules_micromark_util_chara
|
|
|
28061
28100
|
* [The Unicode Standard](https://www.unicode.org/versions/).
|
|
28062
28101
|
* Unicode Consortium.
|
|
28063
28102
|
*
|
|
28064
|
-
* @param
|
|
28103
|
+
* @param code
|
|
28065
28104
|
* Code.
|
|
28066
|
-
* @returns
|
|
28105
|
+
* @returns
|
|
28067
28106
|
* Whether it matches.
|
|
28068
28107
|
*/
|
|
28069
|
-
|
|
28070
|
-
return micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_asciiPunctuation(code) || micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_unicodePunctuationInternal(code)
|
|
28071
|
-
}
|
|
28108
|
+
const micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_unicodePunctuation = micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_regexCheck(/\p{P}|\p{S}/u);
|
|
28072
28109
|
|
|
28073
28110
|
/**
|
|
28074
28111
|
* Check whether the character code represents Unicode whitespace.
|
|
@@ -28087,10 +28124,10 @@ function micromark_extension_gfm_strikethrough_node_modules_micromark_util_chara
|
|
|
28087
28124
|
*
|
|
28088
28125
|
* @param code
|
|
28089
28126
|
* Code.
|
|
28090
|
-
* @returns
|
|
28127
|
+
* @returns
|
|
28091
28128
|
* Whether it matches.
|
|
28092
28129
|
*/
|
|
28093
|
-
const micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_unicodeWhitespace = micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_regexCheck(/\s/)
|
|
28130
|
+
const micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_unicodeWhitespace = micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_regexCheck(/\s/);
|
|
28094
28131
|
|
|
28095
28132
|
/**
|
|
28096
28133
|
* Create a code check from a regex.
|
|
@@ -28099,7 +28136,7 @@ const micromark_extension_gfm_strikethrough_node_modules_micromark_util_characte
|
|
|
28099
28136
|
* @returns {(code: Code) => boolean}
|
|
28100
28137
|
*/
|
|
28101
28138
|
function micromark_extension_gfm_strikethrough_node_modules_micromark_util_character_regexCheck(regex) {
|
|
28102
|
-
return check
|
|
28139
|
+
return check;
|
|
28103
28140
|
|
|
28104
28141
|
/**
|
|
28105
28142
|
* Check whether a code matches the bound regex.
|
|
@@ -28110,10 +28147,9 @@ function micromark_extension_gfm_strikethrough_node_modules_micromark_util_chara
|
|
|
28110
28147
|
* Whether the character code matches the bound regex.
|
|
28111
28148
|
*/
|
|
28112
28149
|
function check(code) {
|
|
28113
|
-
return code !== null && code > -1 && regex.test(String.fromCharCode(code))
|
|
28150
|
+
return code !== null && code > -1 && regex.test(String.fromCharCode(code));
|
|
28114
28151
|
}
|
|
28115
28152
|
}
|
|
28116
|
-
|
|
28117
28153
|
;// CONCATENATED MODULE: ../node_modules/micromark-extension-gfm-strikethrough/node_modules/micromark-util-classify-character/index.js
|
|
28118
28154
|
/**
|
|
28119
28155
|
* @typedef {import('micromark-util-types').Code} Code
|
|
@@ -28371,8 +28407,6 @@ function gfmStrikethrough(options) {
|
|
|
28371
28407
|
* @typedef {import('micromark-util-types').Code} Code
|
|
28372
28408
|
*/
|
|
28373
28409
|
|
|
28374
|
-
const micromark_extension_gfm_table_node_modules_micromark_util_character_unicodePunctuationInternal = micromark_extension_gfm_table_node_modules_micromark_util_character_regexCheck(/\p{P}/u)
|
|
28375
|
-
|
|
28376
28410
|
/**
|
|
28377
28411
|
* Check whether the character code represents an ASCII alpha (`a` through `z`,
|
|
28378
28412
|
* case insensitive).
|
|
@@ -28390,7 +28424,7 @@ const micromark_extension_gfm_table_node_modules_micromark_util_character_unicod
|
|
|
28390
28424
|
* @returns {boolean}
|
|
28391
28425
|
* Whether it matches.
|
|
28392
28426
|
*/
|
|
28393
|
-
const micromark_extension_gfm_table_node_modules_micromark_util_character_asciiAlpha = micromark_extension_gfm_table_node_modules_micromark_util_character_regexCheck(/[A-Za-z]/)
|
|
28427
|
+
const micromark_extension_gfm_table_node_modules_micromark_util_character_asciiAlpha = micromark_extension_gfm_table_node_modules_micromark_util_character_regexCheck(/[A-Za-z]/);
|
|
28394
28428
|
|
|
28395
28429
|
/**
|
|
28396
28430
|
* Check whether the character code represents an ASCII alphanumeric (`a`
|
|
@@ -28404,7 +28438,7 @@ const micromark_extension_gfm_table_node_modules_micromark_util_character_asciiA
|
|
|
28404
28438
|
* @returns {boolean}
|
|
28405
28439
|
* Whether it matches.
|
|
28406
28440
|
*/
|
|
28407
|
-
const micromark_extension_gfm_table_node_modules_micromark_util_character_asciiAlphanumeric = micromark_extension_gfm_table_node_modules_micromark_util_character_regexCheck(/[\dA-Za-z]/)
|
|
28441
|
+
const micromark_extension_gfm_table_node_modules_micromark_util_character_asciiAlphanumeric = micromark_extension_gfm_table_node_modules_micromark_util_character_regexCheck(/[\dA-Za-z]/);
|
|
28408
28442
|
|
|
28409
28443
|
/**
|
|
28410
28444
|
* Check whether the character code represents an ASCII atext.
|
|
@@ -28427,7 +28461,7 @@ const micromark_extension_gfm_table_node_modules_micromark_util_character_asciiA
|
|
|
28427
28461
|
* @returns {boolean}
|
|
28428
28462
|
* Whether it matches.
|
|
28429
28463
|
*/
|
|
28430
|
-
const micromark_extension_gfm_table_node_modules_micromark_util_character_asciiAtext = micromark_extension_gfm_table_node_modules_micromark_util_character_regexCheck(/[#-'*+\--9=?A-Z^-~]/)
|
|
28464
|
+
const micromark_extension_gfm_table_node_modules_micromark_util_character_asciiAtext = micromark_extension_gfm_table_node_modules_micromark_util_character_regexCheck(/[#-'*+\--9=?A-Z^-~]/);
|
|
28431
28465
|
|
|
28432
28466
|
/**
|
|
28433
28467
|
* Check whether a character code is an ASCII control character.
|
|
@@ -28445,7 +28479,7 @@ function micromark_extension_gfm_table_node_modules_micromark_util_character_asc
|
|
|
28445
28479
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
28446
28480
|
// character DEL
|
|
28447
28481
|
code !== null && (code < 32 || code === 127)
|
|
28448
|
-
)
|
|
28482
|
+
);
|
|
28449
28483
|
}
|
|
28450
28484
|
|
|
28451
28485
|
/**
|
|
@@ -28459,7 +28493,7 @@ function micromark_extension_gfm_table_node_modules_micromark_util_character_asc
|
|
|
28459
28493
|
* @returns {boolean}
|
|
28460
28494
|
* Whether it matches.
|
|
28461
28495
|
*/
|
|
28462
|
-
const micromark_extension_gfm_table_node_modules_micromark_util_character_asciiDigit = micromark_extension_gfm_table_node_modules_micromark_util_character_regexCheck(/\d/)
|
|
28496
|
+
const micromark_extension_gfm_table_node_modules_micromark_util_character_asciiDigit = micromark_extension_gfm_table_node_modules_micromark_util_character_regexCheck(/\d/);
|
|
28463
28497
|
|
|
28464
28498
|
/**
|
|
28465
28499
|
* Check whether the character code represents an ASCII hex digit (`a` through
|
|
@@ -28479,7 +28513,7 @@ const micromark_extension_gfm_table_node_modules_micromark_util_character_asciiD
|
|
|
28479
28513
|
* @returns {boolean}
|
|
28480
28514
|
* Whether it matches.
|
|
28481
28515
|
*/
|
|
28482
|
-
const micromark_extension_gfm_table_node_modules_micromark_util_character_asciiHexDigit = micromark_extension_gfm_table_node_modules_micromark_util_character_regexCheck(/[\dA-Fa-f]/)
|
|
28516
|
+
const micromark_extension_gfm_table_node_modules_micromark_util_character_asciiHexDigit = micromark_extension_gfm_table_node_modules_micromark_util_character_regexCheck(/[\dA-Fa-f]/);
|
|
28483
28517
|
|
|
28484
28518
|
/**
|
|
28485
28519
|
* Check whether the character code represents ASCII punctuation.
|
|
@@ -28494,7 +28528,7 @@ const micromark_extension_gfm_table_node_modules_micromark_util_character_asciiH
|
|
|
28494
28528
|
* @returns {boolean}
|
|
28495
28529
|
* Whether it matches.
|
|
28496
28530
|
*/
|
|
28497
|
-
const micromark_extension_gfm_table_node_modules_micromark_util_character_asciiPunctuation = micromark_extension_gfm_table_node_modules_micromark_util_character_regexCheck(/[!-/:-@[-`{-~]/)
|
|
28531
|
+
const micromark_extension_gfm_table_node_modules_micromark_util_character_asciiPunctuation = micromark_extension_gfm_table_node_modules_micromark_util_character_regexCheck(/[!-/:-@[-`{-~]/);
|
|
28498
28532
|
|
|
28499
28533
|
/**
|
|
28500
28534
|
* Check whether a character code is a markdown line ending.
|
|
@@ -28512,7 +28546,7 @@ const micromark_extension_gfm_table_node_modules_micromark_util_character_asciiP
|
|
|
28512
28546
|
* Whether it matches.
|
|
28513
28547
|
*/
|
|
28514
28548
|
function micromark_extension_gfm_table_node_modules_micromark_util_character_markdownLineEnding(code) {
|
|
28515
|
-
return code !== null && code < -2
|
|
28549
|
+
return code !== null && code < -2;
|
|
28516
28550
|
}
|
|
28517
28551
|
|
|
28518
28552
|
/**
|
|
@@ -28525,7 +28559,7 @@ function micromark_extension_gfm_table_node_modules_micromark_util_character_mar
|
|
|
28525
28559
|
* Whether it matches.
|
|
28526
28560
|
*/
|
|
28527
28561
|
function micromark_extension_gfm_table_node_modules_micromark_util_character_markdownLineEndingOrSpace(code) {
|
|
28528
|
-
return code !== null && (code < 0 || code === 32)
|
|
28562
|
+
return code !== null && (code < 0 || code === 32);
|
|
28529
28563
|
}
|
|
28530
28564
|
|
|
28531
28565
|
/**
|
|
@@ -28544,7 +28578,7 @@ function micromark_extension_gfm_table_node_modules_micromark_util_character_mar
|
|
|
28544
28578
|
* Whether it matches.
|
|
28545
28579
|
*/
|
|
28546
28580
|
function micromark_extension_gfm_table_node_modules_micromark_util_character_markdownSpace(code) {
|
|
28547
|
-
return code === -2 || code === -1 || code === 32
|
|
28581
|
+
return code === -2 || code === -1 || code === 32;
|
|
28548
28582
|
}
|
|
28549
28583
|
|
|
28550
28584
|
// Size note: removing ASCII from the regex and using `asciiPunctuation` here
|
|
@@ -28563,14 +28597,12 @@ function micromark_extension_gfm_table_node_modules_micromark_util_character_mar
|
|
|
28563
28597
|
* [The Unicode Standard](https://www.unicode.org/versions/).
|
|
28564
28598
|
* Unicode Consortium.
|
|
28565
28599
|
*
|
|
28566
|
-
* @param
|
|
28600
|
+
* @param code
|
|
28567
28601
|
* Code.
|
|
28568
|
-
* @returns
|
|
28602
|
+
* @returns
|
|
28569
28603
|
* Whether it matches.
|
|
28570
28604
|
*/
|
|
28571
|
-
|
|
28572
|
-
return micromark_extension_gfm_table_node_modules_micromark_util_character_asciiPunctuation(code) || micromark_extension_gfm_table_node_modules_micromark_util_character_unicodePunctuationInternal(code)
|
|
28573
|
-
}
|
|
28605
|
+
const micromark_extension_gfm_table_node_modules_micromark_util_character_unicodePunctuation = micromark_extension_gfm_table_node_modules_micromark_util_character_regexCheck(/\p{P}|\p{S}/u);
|
|
28574
28606
|
|
|
28575
28607
|
/**
|
|
28576
28608
|
* Check whether the character code represents Unicode whitespace.
|
|
@@ -28589,10 +28621,10 @@ function micromark_extension_gfm_table_node_modules_micromark_util_character_uni
|
|
|
28589
28621
|
*
|
|
28590
28622
|
* @param code
|
|
28591
28623
|
* Code.
|
|
28592
|
-
* @returns
|
|
28624
|
+
* @returns
|
|
28593
28625
|
* Whether it matches.
|
|
28594
28626
|
*/
|
|
28595
|
-
const micromark_extension_gfm_table_node_modules_micromark_util_character_unicodeWhitespace = micromark_extension_gfm_table_node_modules_micromark_util_character_regexCheck(/\s/)
|
|
28627
|
+
const micromark_extension_gfm_table_node_modules_micromark_util_character_unicodeWhitespace = micromark_extension_gfm_table_node_modules_micromark_util_character_regexCheck(/\s/);
|
|
28596
28628
|
|
|
28597
28629
|
/**
|
|
28598
28630
|
* Create a code check from a regex.
|
|
@@ -28601,7 +28633,7 @@ const micromark_extension_gfm_table_node_modules_micromark_util_character_unicod
|
|
|
28601
28633
|
* @returns {(code: Code) => boolean}
|
|
28602
28634
|
*/
|
|
28603
28635
|
function micromark_extension_gfm_table_node_modules_micromark_util_character_regexCheck(regex) {
|
|
28604
|
-
return check
|
|
28636
|
+
return check;
|
|
28605
28637
|
|
|
28606
28638
|
/**
|
|
28607
28639
|
* Check whether a code matches the bound regex.
|
|
@@ -28612,10 +28644,9 @@ function micromark_extension_gfm_table_node_modules_micromark_util_character_reg
|
|
|
28612
28644
|
* Whether the character code matches the bound regex.
|
|
28613
28645
|
*/
|
|
28614
28646
|
function check(code) {
|
|
28615
|
-
return code !== null && code > -1 && regex.test(String.fromCharCode(code))
|
|
28647
|
+
return code !== null && code > -1 && regex.test(String.fromCharCode(code));
|
|
28616
28648
|
}
|
|
28617
28649
|
}
|
|
28618
|
-
|
|
28619
28650
|
;// CONCATENATED MODULE: ../node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/index.js
|
|
28620
28651
|
/**
|
|
28621
28652
|
* @typedef {import('micromark-util-types').Effects} Effects
|
|
@@ -29833,8 +29864,6 @@ function getPoint(events, index) {
|
|
|
29833
29864
|
* @typedef {import('micromark-util-types').Code} Code
|
|
29834
29865
|
*/
|
|
29835
29866
|
|
|
29836
|
-
const micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_unicodePunctuationInternal = micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_regexCheck(/\p{P}/u)
|
|
29837
|
-
|
|
29838
29867
|
/**
|
|
29839
29868
|
* Check whether the character code represents an ASCII alpha (`a` through `z`,
|
|
29840
29869
|
* case insensitive).
|
|
@@ -29852,7 +29881,7 @@ const micromark_extension_gfm_task_list_item_node_modules_micromark_util_charact
|
|
|
29852
29881
|
* @returns {boolean}
|
|
29853
29882
|
* Whether it matches.
|
|
29854
29883
|
*/
|
|
29855
|
-
const micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_asciiAlpha = micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_regexCheck(/[A-Za-z]/)
|
|
29884
|
+
const micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_asciiAlpha = micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_regexCheck(/[A-Za-z]/);
|
|
29856
29885
|
|
|
29857
29886
|
/**
|
|
29858
29887
|
* Check whether the character code represents an ASCII alphanumeric (`a`
|
|
@@ -29866,7 +29895,7 @@ const micromark_extension_gfm_task_list_item_node_modules_micromark_util_charact
|
|
|
29866
29895
|
* @returns {boolean}
|
|
29867
29896
|
* Whether it matches.
|
|
29868
29897
|
*/
|
|
29869
|
-
const micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_asciiAlphanumeric = micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_regexCheck(/[\dA-Za-z]/)
|
|
29898
|
+
const micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_asciiAlphanumeric = micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_regexCheck(/[\dA-Za-z]/);
|
|
29870
29899
|
|
|
29871
29900
|
/**
|
|
29872
29901
|
* Check whether the character code represents an ASCII atext.
|
|
@@ -29889,7 +29918,7 @@ const micromark_extension_gfm_task_list_item_node_modules_micromark_util_charact
|
|
|
29889
29918
|
* @returns {boolean}
|
|
29890
29919
|
* Whether it matches.
|
|
29891
29920
|
*/
|
|
29892
|
-
const micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_asciiAtext = micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_regexCheck(/[#-'*+\--9=?A-Z^-~]/)
|
|
29921
|
+
const micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_asciiAtext = micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_regexCheck(/[#-'*+\--9=?A-Z^-~]/);
|
|
29893
29922
|
|
|
29894
29923
|
/**
|
|
29895
29924
|
* Check whether a character code is an ASCII control character.
|
|
@@ -29907,7 +29936,7 @@ function micromark_extension_gfm_task_list_item_node_modules_micromark_util_char
|
|
|
29907
29936
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
29908
29937
|
// character DEL
|
|
29909
29938
|
code !== null && (code < 32 || code === 127)
|
|
29910
|
-
)
|
|
29939
|
+
);
|
|
29911
29940
|
}
|
|
29912
29941
|
|
|
29913
29942
|
/**
|
|
@@ -29921,7 +29950,7 @@ function micromark_extension_gfm_task_list_item_node_modules_micromark_util_char
|
|
|
29921
29950
|
* @returns {boolean}
|
|
29922
29951
|
* Whether it matches.
|
|
29923
29952
|
*/
|
|
29924
|
-
const micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_asciiDigit = micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_regexCheck(/\d/)
|
|
29953
|
+
const micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_asciiDigit = micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_regexCheck(/\d/);
|
|
29925
29954
|
|
|
29926
29955
|
/**
|
|
29927
29956
|
* Check whether the character code represents an ASCII hex digit (`a` through
|
|
@@ -29941,7 +29970,7 @@ const micromark_extension_gfm_task_list_item_node_modules_micromark_util_charact
|
|
|
29941
29970
|
* @returns {boolean}
|
|
29942
29971
|
* Whether it matches.
|
|
29943
29972
|
*/
|
|
29944
|
-
const micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_asciiHexDigit = micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_regexCheck(/[\dA-Fa-f]/)
|
|
29973
|
+
const micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_asciiHexDigit = micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_regexCheck(/[\dA-Fa-f]/);
|
|
29945
29974
|
|
|
29946
29975
|
/**
|
|
29947
29976
|
* Check whether the character code represents ASCII punctuation.
|
|
@@ -29956,7 +29985,7 @@ const micromark_extension_gfm_task_list_item_node_modules_micromark_util_charact
|
|
|
29956
29985
|
* @returns {boolean}
|
|
29957
29986
|
* Whether it matches.
|
|
29958
29987
|
*/
|
|
29959
|
-
const micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_asciiPunctuation = micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_regexCheck(/[!-/:-@[-`{-~]/)
|
|
29988
|
+
const micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_asciiPunctuation = micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_regexCheck(/[!-/:-@[-`{-~]/);
|
|
29960
29989
|
|
|
29961
29990
|
/**
|
|
29962
29991
|
* Check whether a character code is a markdown line ending.
|
|
@@ -29974,7 +30003,7 @@ const micromark_extension_gfm_task_list_item_node_modules_micromark_util_charact
|
|
|
29974
30003
|
* Whether it matches.
|
|
29975
30004
|
*/
|
|
29976
30005
|
function micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_markdownLineEnding(code) {
|
|
29977
|
-
return code !== null && code < -2
|
|
30006
|
+
return code !== null && code < -2;
|
|
29978
30007
|
}
|
|
29979
30008
|
|
|
29980
30009
|
/**
|
|
@@ -29987,7 +30016,7 @@ function micromark_extension_gfm_task_list_item_node_modules_micromark_util_char
|
|
|
29987
30016
|
* Whether it matches.
|
|
29988
30017
|
*/
|
|
29989
30018
|
function micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_markdownLineEndingOrSpace(code) {
|
|
29990
|
-
return code !== null && (code < 0 || code === 32)
|
|
30019
|
+
return code !== null && (code < 0 || code === 32);
|
|
29991
30020
|
}
|
|
29992
30021
|
|
|
29993
30022
|
/**
|
|
@@ -30006,7 +30035,7 @@ function micromark_extension_gfm_task_list_item_node_modules_micromark_util_char
|
|
|
30006
30035
|
* Whether it matches.
|
|
30007
30036
|
*/
|
|
30008
30037
|
function micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_markdownSpace(code) {
|
|
30009
|
-
return code === -2 || code === -1 || code === 32
|
|
30038
|
+
return code === -2 || code === -1 || code === 32;
|
|
30010
30039
|
}
|
|
30011
30040
|
|
|
30012
30041
|
// Size note: removing ASCII from the regex and using `asciiPunctuation` here
|
|
@@ -30025,14 +30054,12 @@ function micromark_extension_gfm_task_list_item_node_modules_micromark_util_char
|
|
|
30025
30054
|
* [The Unicode Standard](https://www.unicode.org/versions/).
|
|
30026
30055
|
* Unicode Consortium.
|
|
30027
30056
|
*
|
|
30028
|
-
* @param
|
|
30057
|
+
* @param code
|
|
30029
30058
|
* Code.
|
|
30030
|
-
* @returns
|
|
30059
|
+
* @returns
|
|
30031
30060
|
* Whether it matches.
|
|
30032
30061
|
*/
|
|
30033
|
-
|
|
30034
|
-
return micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_asciiPunctuation(code) || micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_unicodePunctuationInternal(code)
|
|
30035
|
-
}
|
|
30062
|
+
const micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_unicodePunctuation = micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_regexCheck(/\p{P}|\p{S}/u);
|
|
30036
30063
|
|
|
30037
30064
|
/**
|
|
30038
30065
|
* Check whether the character code represents Unicode whitespace.
|
|
@@ -30051,10 +30078,10 @@ function micromark_extension_gfm_task_list_item_node_modules_micromark_util_char
|
|
|
30051
30078
|
*
|
|
30052
30079
|
* @param code
|
|
30053
30080
|
* Code.
|
|
30054
|
-
* @returns
|
|
30081
|
+
* @returns
|
|
30055
30082
|
* Whether it matches.
|
|
30056
30083
|
*/
|
|
30057
|
-
const micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_unicodeWhitespace = micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_regexCheck(/\s/)
|
|
30084
|
+
const micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_unicodeWhitespace = micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_regexCheck(/\s/);
|
|
30058
30085
|
|
|
30059
30086
|
/**
|
|
30060
30087
|
* Create a code check from a regex.
|
|
@@ -30063,7 +30090,7 @@ const micromark_extension_gfm_task_list_item_node_modules_micromark_util_charact
|
|
|
30063
30090
|
* @returns {(code: Code) => boolean}
|
|
30064
30091
|
*/
|
|
30065
30092
|
function micromark_extension_gfm_task_list_item_node_modules_micromark_util_character_regexCheck(regex) {
|
|
30066
|
-
return check
|
|
30093
|
+
return check;
|
|
30067
30094
|
|
|
30068
30095
|
/**
|
|
30069
30096
|
* Check whether a code matches the bound regex.
|
|
@@ -30074,10 +30101,9 @@ function micromark_extension_gfm_task_list_item_node_modules_micromark_util_char
|
|
|
30074
30101
|
* Whether the character code matches the bound regex.
|
|
30075
30102
|
*/
|
|
30076
30103
|
function check(code) {
|
|
30077
|
-
return code !== null && code > -1 && regex.test(String.fromCharCode(code))
|
|
30104
|
+
return code !== null && code > -1 && regex.test(String.fromCharCode(code));
|
|
30078
30105
|
}
|
|
30079
30106
|
}
|
|
30080
|
-
|
|
30081
30107
|
;// CONCATENATED MODULE: ../node_modules/micromark-extension-gfm-task-list-item/node_modules/micromark-factory-space/index.js
|
|
30082
30108
|
/**
|
|
30083
30109
|
* @typedef {import('micromark-util-types').Effects} Effects
|
|
@@ -41506,7 +41532,7 @@ function rehypeRaw(options) {
|
|
|
41506
41532
|
}
|
|
41507
41533
|
|
|
41508
41534
|
// EXTERNAL MODULE: ../node_modules/@uiw/copy-to-clipboard/dist/copy-to-clipboard.umd.js
|
|
41509
|
-
var copy_to_clipboard_umd = __webpack_require__(
|
|
41535
|
+
var copy_to_clipboard_umd = __webpack_require__(886);
|
|
41510
41536
|
var copy_to_clipboard_umd_default = /*#__PURE__*/__webpack_require__.n(copy_to_clipboard_umd);
|
|
41511
41537
|
;// CONCATENATED MODULE: ../node_modules/@uiw/react-markdown-preview/esm/plugins/useCopied.js
|
|
41512
41538
|
|
|
@@ -41804,7 +41830,7 @@ function lib_parent(node) {
|
|
|
41804
41830
|
}
|
|
41805
41831
|
|
|
41806
41832
|
// EXTERNAL MODULE: ../node_modules/parse-numeric-range/index.js
|
|
41807
|
-
var parse_numeric_range = __webpack_require__(
|
|
41833
|
+
var parse_numeric_range = __webpack_require__(934);
|
|
41808
41834
|
;// CONCATENATED MODULE: ../node_modules/refractor/lang/clike.js
|
|
41809
41835
|
// @ts-nocheck
|
|
41810
41836
|
clike.displayName = 'clike'
|
|
@@ -69819,6 +69845,9 @@ function createParser(options) {
|
|
|
69819
69845
|
result += chr;
|
|
69820
69846
|
next();
|
|
69821
69847
|
}
|
|
69848
|
+
if (result === '-' && !isIdent(chr) && !is('\\')) {
|
|
69849
|
+
fail('Identifiers cannot consist of a single hyphen.');
|
|
69850
|
+
}
|
|
69822
69851
|
if (strict && result.length >= 2) {
|
|
69823
69852
|
// Checking this only for strict mode since browsers work fine with these identifiers.
|
|
69824
69853
|
fail('Identifiers cannot start with two hyphens with strict mode on.');
|
|
@@ -71303,7 +71332,7 @@ function esm_parse_parse(formula) {
|
|
|
71303
71332
|
}
|
|
71304
71333
|
//# sourceMappingURL=parse.js.map
|
|
71305
71334
|
// EXTERNAL MODULE: ../node_modules/boolbase/index.js
|
|
71306
|
-
var boolbase = __webpack_require__(
|
|
71335
|
+
var boolbase = __webpack_require__(740);
|
|
71307
71336
|
;// CONCATENATED MODULE: ../node_modules/nth-check/lib/esm/compile.js
|
|
71308
71337
|
|
|
71309
71338
|
/**
|
|
@@ -73849,13 +73878,13 @@ var defaultRehypePlugins = [rehypeSlug, rehypeAutolinkHeadings, rehype_ignore_li
|
|
|
73849
73878
|
|
|
73850
73879
|
/* harmony default export */ const react_markdown_preview_esm = (/*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef((props, ref) => {
|
|
73851
73880
|
var _props$disableCopy;
|
|
73852
|
-
var rehypePlugins = [reservedMeta, rehypeRaw, retrieveMeta, [
|
|
73853
|
-
ignoreMissing: true
|
|
73854
|
-
}], ...defaultRehypePlugins, [lib, {
|
|
73881
|
+
var rehypePlugins = [reservedMeta, rehypeRaw, retrieveMeta, ...defaultRehypePlugins, [lib, {
|
|
73855
73882
|
rewrite: rehypeRewriteHandle((_props$disableCopy = props.disableCopy) != null ? _props$disableCopy : false, props.rehypeRewrite)
|
|
73856
73883
|
}], [rehype_attr_lib, {
|
|
73857
73884
|
properties: 'attr'
|
|
73858
|
-
}], ...(props.rehypePlugins || [])
|
|
73885
|
+
}], ...(props.rehypePlugins || []), [f, {
|
|
73886
|
+
ignoreMissing: true
|
|
73887
|
+
}]];
|
|
73859
73888
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(preview, _extends({}, props, {
|
|
73860
73889
|
rehypePlugins: rehypePlugins,
|
|
73861
73890
|
ref: ref
|