@uiw/react-md-editor 4.0.7 → 4.0.9
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 +104 -2
- package/commands.d.ts +14 -7
- package/dist/mdeditor.css +1 -1
- package/dist/mdeditor.js +231 -233
- package/dist/mdeditor.min.js +1 -1
- package/esm/Editor.d.ts +1 -1
- package/esm/Editor.nohighlight.d.ts +1 -1
- package/esm/commands/index.cn.js +4 -4
- package/esm/commands/index.d.ts +8 -8
- package/esm/commands/index.js +8 -8
- package/esm/commands/title.d.ts +7 -1
- package/esm/commands/title.js +11 -4
- package/esm/commands/title1.d.ts +6 -0
- package/esm/commands/title1.js +16 -9
- package/esm/commands/title2.d.ts +6 -0
- package/esm/commands/title2.js +16 -9
- package/esm/commands/title3.d.ts +6 -0
- package/esm/commands/title3.js +16 -9
- package/esm/commands/title4.d.ts +6 -0
- package/esm/commands/title4.js +16 -9
- package/esm/commands/title5.d.ts +6 -0
- package/esm/commands/title5.js +16 -9
- package/esm/commands/title6.d.ts +6 -0
- package/esm/commands/title6.js +16 -9
- package/esm/components/DragBar/index.d.ts +1 -1
- package/esm/components/TextArea/Markdown.d.ts +1 -1
- package/esm/components/TextArea/Textarea.d.ts +1 -1
- package/esm/components/TextArea/index.d.ts +4 -4
- package/esm/components/TextArea/index.nohighlight.d.ts +3 -3
- package/esm/components/Toolbar/Child.d.ts +1 -1
- package/esm/components/Toolbar/index.d.ts +1 -1
- package/esm/index.d.ts +3 -0
- package/esm/index.js +3 -0
- package/lib/Editor.d.ts +1 -1
- package/lib/Editor.nohighlight.d.ts +1 -1
- package/lib/commands/index.cn.js +4 -4
- package/lib/commands/index.d.ts +8 -8
- package/lib/commands/index.js +42 -0
- package/lib/commands/title.d.ts +7 -1
- package/lib/commands/title.js +12 -4
- package/lib/commands/title1.d.ts +6 -0
- package/lib/commands/title1.js +16 -9
- package/lib/commands/title2.d.ts +6 -0
- package/lib/commands/title2.js +16 -9
- package/lib/commands/title3.d.ts +6 -0
- package/lib/commands/title3.js +16 -9
- package/lib/commands/title4.d.ts +6 -0
- package/lib/commands/title4.js +16 -9
- package/lib/commands/title5.d.ts +6 -0
- package/lib/commands/title5.js +16 -9
- package/lib/commands/title6.d.ts +6 -0
- package/lib/commands/title6.js +16 -9
- package/lib/components/DragBar/index.d.ts +1 -1
- package/lib/components/TextArea/Markdown.d.ts +1 -1
- package/lib/components/TextArea/Textarea.d.ts +1 -1
- package/lib/components/TextArea/index.d.ts +4 -4
- package/lib/components/TextArea/index.nohighlight.d.ts +3 -3
- package/lib/components/Toolbar/Child.d.ts +1 -1
- package/lib/components/Toolbar/index.d.ts +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.js +26 -1
- package/nohighlight.d.ts +2 -0
- package/package.json +1 -1
- package/src/Editor.nohighlight.tsx +2 -2
- package/src/Editor.tsx +3 -3
- package/src/commands/index.cn.ts +3 -3
- package/src/commands/index.ts +14 -7
- package/src/commands/title.tsx +11 -4
- package/src/commands/title1.tsx +14 -7
- package/src/commands/title2.tsx +14 -7
- package/src/commands/title3.tsx +14 -7
- package/src/commands/title4.tsx +14 -7
- package/src/commands/title5.tsx +14 -7
- package/src/commands/title6.tsx +14 -7
- package/src/components/DragBar/index.tsx +1 -1
- package/src/components/TextArea/Markdown.tsx +1 -1
- package/src/components/TextArea/Textarea.tsx +2 -2
- package/src/components/TextArea/index.nohighlight.tsx +5 -4
- package/src/components/TextArea/index.tsx +6 -5
- package/src/components/Toolbar/Child.tsx +1 -1
- package/src/components/Toolbar/index.tsx +2 -2
- package/src/index.tsx +3 -0
package/dist/mdeditor.js
CHANGED
|
@@ -84,22 +84,11 @@ if (true) {
|
|
|
84
84
|
|
|
85
85
|
/***/ }),
|
|
86
86
|
|
|
87
|
-
/***/
|
|
87
|
+
/***/ 689:
|
|
88
88
|
/***/ ((module) => {
|
|
89
89
|
|
|
90
|
-
|
|
91
|
-
trueFunc: function trueFunc(){
|
|
92
|
-
return true;
|
|
93
|
-
},
|
|
94
|
-
falseFunc: function falseFunc(){
|
|
95
|
-
return false;
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
/***/ }),
|
|
90
|
+
"use strict";
|
|
100
91
|
|
|
101
|
-
/***/ 848:
|
|
102
|
-
/***/ ((module) => {
|
|
103
92
|
|
|
104
93
|
// http://www.w3.org/TR/CSS21/grammar.html
|
|
105
94
|
// https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027
|
|
@@ -134,7 +123,7 @@ var TYPE_DECLARATION = 'declaration';
|
|
|
134
123
|
* @throws {TypeError}
|
|
135
124
|
* @throws {Error}
|
|
136
125
|
*/
|
|
137
|
-
|
|
126
|
+
function index (style, options) {
|
|
138
127
|
if (typeof style !== 'string') {
|
|
139
128
|
throw new TypeError('First argument must be a string');
|
|
140
129
|
}
|
|
@@ -194,8 +183,6 @@ module.exports = function (style, options) {
|
|
|
194
183
|
*/
|
|
195
184
|
Position.prototype.content = style;
|
|
196
185
|
|
|
197
|
-
var errorsList = [];
|
|
198
|
-
|
|
199
186
|
/**
|
|
200
187
|
* Error `msg`.
|
|
201
188
|
*
|
|
@@ -212,9 +199,7 @@ module.exports = function (style, options) {
|
|
|
212
199
|
err.column = column;
|
|
213
200
|
err.source = style;
|
|
214
201
|
|
|
215
|
-
if (options.silent) {
|
|
216
|
-
errorsList.push(err);
|
|
217
|
-
} else {
|
|
202
|
+
if (options.silent) ; else {
|
|
218
203
|
throw err;
|
|
219
204
|
}
|
|
220
205
|
}
|
|
@@ -351,7 +336,7 @@ module.exports = function (style, options) {
|
|
|
351
336
|
|
|
352
337
|
whitespace();
|
|
353
338
|
return declarations();
|
|
354
|
-
}
|
|
339
|
+
}
|
|
355
340
|
|
|
356
341
|
/**
|
|
357
342
|
* Trim `str`.
|
|
@@ -363,6 +348,23 @@ function trim(str) {
|
|
|
363
348
|
return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
|
|
364
349
|
}
|
|
365
350
|
|
|
351
|
+
module.exports = index;
|
|
352
|
+
//# sourceMappingURL=index.js.map
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
/***/ }),
|
|
356
|
+
|
|
357
|
+
/***/ 740:
|
|
358
|
+
/***/ ((module) => {
|
|
359
|
+
|
|
360
|
+
module.exports = {
|
|
361
|
+
trueFunc: function trueFunc(){
|
|
362
|
+
return true;
|
|
363
|
+
},
|
|
364
|
+
falseFunc: function falseFunc(){
|
|
365
|
+
return false;
|
|
366
|
+
}
|
|
367
|
+
};
|
|
366
368
|
|
|
367
369
|
/***/ }),
|
|
368
370
|
|
|
@@ -376,7 +378,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
376
378
|
};
|
|
377
379
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
378
380
|
exports["default"] = StyleToObject;
|
|
379
|
-
|
|
381
|
+
const inline_style_parser_1 = __importDefault(__webpack_require__(689));
|
|
380
382
|
/**
|
|
381
383
|
* Parses inline style to object.
|
|
382
384
|
*
|
|
@@ -392,17 +394,17 @@ var inline_style_parser_1 = __importDefault(__webpack_require__(848));
|
|
|
392
394
|
* ```
|
|
393
395
|
*/
|
|
394
396
|
function StyleToObject(style, iterator) {
|
|
395
|
-
|
|
397
|
+
let styleObject = null;
|
|
396
398
|
if (!style || typeof style !== 'string') {
|
|
397
399
|
return styleObject;
|
|
398
400
|
}
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
declarations.forEach(
|
|
401
|
+
const declarations = (0, inline_style_parser_1.default)(style);
|
|
402
|
+
const hasIterator = typeof iterator === 'function';
|
|
403
|
+
declarations.forEach((declaration) => {
|
|
402
404
|
if (declaration.type !== 'declaration') {
|
|
403
405
|
return;
|
|
404
406
|
}
|
|
405
|
-
|
|
407
|
+
const { property, value } = declaration;
|
|
406
408
|
if (hasIterator) {
|
|
407
409
|
iterator(property, value, declaration);
|
|
408
410
|
}
|
|
@@ -820,6 +822,15 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
820
822
|
getStateFromTextArea: () => (/* reexport */ getStateFromTextArea),
|
|
821
823
|
getSurroundingWord: () => (/* reexport */ getSurroundingWord),
|
|
822
824
|
group: () => (/* reexport */ group),
|
|
825
|
+
handleKeyDown: () => (/* reexport */ handleKeyDown),
|
|
826
|
+
heading: () => (/* reexport */ title_heading),
|
|
827
|
+
heading1: () => (/* reexport */ heading1),
|
|
828
|
+
heading2: () => (/* reexport */ heading2),
|
|
829
|
+
heading3: () => (/* reexport */ heading3),
|
|
830
|
+
heading4: () => (/* reexport */ heading4),
|
|
831
|
+
heading5: () => (/* reexport */ heading5),
|
|
832
|
+
heading6: () => (/* reexport */ heading6),
|
|
833
|
+
headingExecute: () => (/* reexport */ headingExecute),
|
|
823
834
|
help: () => (/* reexport */ help),
|
|
824
835
|
hr: () => (/* reexport */ hr),
|
|
825
836
|
image: () => (/* reexport */ commands_image_image),
|
|
@@ -833,6 +844,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
833
844
|
reducer: () => (/* reexport */ reducer),
|
|
834
845
|
selectLine: () => (/* reexport */ selectLine),
|
|
835
846
|
selectWord: () => (/* reexport */ selectWord),
|
|
847
|
+
shortcuts: () => (/* reexport */ shortcutsHandle),
|
|
836
848
|
strikethrough: () => (/* reexport */ strikeThrough_strikethrough),
|
|
837
849
|
table: () => (/* reexport */ table_table),
|
|
838
850
|
title: () => (/* reexport */ title),
|
|
@@ -932,6 +944,13 @@ __webpack_require__.d(commands_namespaceObject, {
|
|
|
932
944
|
getExtraCommands: () => (getExtraCommands),
|
|
933
945
|
getStateFromTextArea: () => (getStateFromTextArea),
|
|
934
946
|
group: () => (group),
|
|
947
|
+
heading: () => (title_heading),
|
|
948
|
+
heading1: () => (heading1),
|
|
949
|
+
heading2: () => (heading2),
|
|
950
|
+
heading3: () => (heading3),
|
|
951
|
+
heading4: () => (heading4),
|
|
952
|
+
heading5: () => (heading5),
|
|
953
|
+
heading6: () => (heading6),
|
|
935
954
|
help: () => (help),
|
|
936
955
|
hr: () => (hr),
|
|
937
956
|
image: () => (commands_image_image),
|
|
@@ -1125,8 +1144,7 @@ function _extends() {
|
|
|
1125
1144
|
|
|
1126
1145
|
;// ../node_modules/unist-util-is/lib/index.js
|
|
1127
1146
|
/**
|
|
1128
|
-
* @
|
|
1129
|
-
* @typedef {import('unist').Parent} Parent
|
|
1147
|
+
* @import {Node, Parent} from 'unist'
|
|
1130
1148
|
*/
|
|
1131
1149
|
|
|
1132
1150
|
/**
|
|
@@ -1154,7 +1172,7 @@ function _extends() {
|
|
|
1154
1172
|
*
|
|
1155
1173
|
* Note: `Node` is included as it is common but is not indexable.
|
|
1156
1174
|
*
|
|
1157
|
-
* @typedef {Array<Props | TestFunction | string> | Props | TestFunction | string | null | undefined} Test
|
|
1175
|
+
* @typedef {Array<Props | TestFunction | string> | ReadonlyArray<Props | TestFunction | string> | Props | TestFunction | string | null | undefined} Test
|
|
1158
1176
|
* Check for an arbitrary node.
|
|
1159
1177
|
*
|
|
1160
1178
|
* @callback TestFunction
|
|
@@ -1193,6 +1211,8 @@ const is =
|
|
|
1193
1211
|
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
1194
1212
|
/**
|
|
1195
1213
|
* @type {(
|
|
1214
|
+
* (<Condition extends ReadonlyArray<string>>(node: unknown, test: Condition, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & {type: Condition[number]}) &
|
|
1215
|
+
* (<Condition extends Array<string>>(node: unknown, test: Condition, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & {type: Condition[number]}) &
|
|
1196
1216
|
* (<Condition extends string>(node: unknown, test: Condition, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & {type: Condition}) &
|
|
1197
1217
|
* (<Condition extends Props>(node: unknown, test: Condition, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Condition) &
|
|
1198
1218
|
* (<Condition extends TestFunction>(node: unknown, test: Condition, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Predicate<Condition, Node>) &
|
|
@@ -1289,7 +1309,11 @@ const convert =
|
|
|
1289
1309
|
}
|
|
1290
1310
|
|
|
1291
1311
|
if (typeof test === 'object') {
|
|
1292
|
-
return Array.isArray(test)
|
|
1312
|
+
return Array.isArray(test)
|
|
1313
|
+
? anyFactory(test)
|
|
1314
|
+
: // Cast because `ReadonlyArray` goes into the above but `isArray`
|
|
1315
|
+
// narrows to `Array`.
|
|
1316
|
+
propertiesFactory(/** @type {Props} */ (test))
|
|
1293
1317
|
}
|
|
1294
1318
|
|
|
1295
1319
|
if (typeof test === 'string') {
|
|
@@ -1336,7 +1360,7 @@ function anyFactory(tests) {
|
|
|
1336
1360
|
* @param {Props} check
|
|
1337
1361
|
* @returns {Check}
|
|
1338
1362
|
*/
|
|
1339
|
-
function
|
|
1363
|
+
function propertiesFactory(check) {
|
|
1340
1364
|
const checkAsRecord = /** @type {Record<string, unknown>} */ (check)
|
|
1341
1365
|
|
|
1342
1366
|
return castFactory(all)
|
|
@@ -1427,8 +1451,7 @@ function color(d) {
|
|
|
1427
1451
|
|
|
1428
1452
|
;// ../node_modules/unist-util-visit-parents/lib/index.js
|
|
1429
1453
|
/**
|
|
1430
|
-
* @
|
|
1431
|
-
* @typedef {import('unist').Parent} UnistParent
|
|
1454
|
+
* @import {Node as UnistNode, Parent as UnistParent} from 'unist'
|
|
1432
1455
|
*/
|
|
1433
1456
|
|
|
1434
1457
|
/**
|
|
@@ -1476,8 +1499,10 @@ function color(d) {
|
|
|
1476
1499
|
|
|
1477
1500
|
/**
|
|
1478
1501
|
* @typedef {(
|
|
1479
|
-
* Check extends
|
|
1480
|
-
* ? MatchesOne<Value,
|
|
1502
|
+
* Check extends ReadonlyArray<infer T>
|
|
1503
|
+
* ? MatchesOne<Value, T>
|
|
1504
|
+
* : Check extends Array<infer T>
|
|
1505
|
+
* ? MatchesOne<Value, T>
|
|
1481
1506
|
* : MatchesOne<Value, Check>
|
|
1482
1507
|
* )} Matches
|
|
1483
1508
|
* Check whether a node matches a check in the type system.
|
|
@@ -1747,9 +1772,9 @@ function visitParents(tree, test, visitor, reverse) {
|
|
|
1747
1772
|
typeof value.tagName === 'string'
|
|
1748
1773
|
? value.tagName
|
|
1749
1774
|
: // `xast`
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1775
|
+
typeof value.name === 'string'
|
|
1776
|
+
? value.name
|
|
1777
|
+
: undefined
|
|
1753
1778
|
|
|
1754
1779
|
Object.defineProperty(visit, 'name', {
|
|
1755
1780
|
value:
|
|
@@ -8879,7 +8904,7 @@ function isAlphanumerical(character) {
|
|
|
8879
8904
|
;// ../node_modules/decode-named-character-reference/index.dom.js
|
|
8880
8905
|
/// <reference lib="dom" />
|
|
8881
8906
|
|
|
8882
|
-
/*
|
|
8907
|
+
/* global document */
|
|
8883
8908
|
|
|
8884
8909
|
const index_dom_element = document.createElement('i')
|
|
8885
8910
|
|
|
@@ -33455,6 +33480,7 @@ var extendSyntaxDefinition = withNoNegative(mergeSection({
|
|
|
33455
33480
|
})),
|
|
33456
33481
|
ids: replaceValueIfSpecified,
|
|
33457
33482
|
classNames: replaceValueIfSpecified,
|
|
33483
|
+
nestingSelector: replaceValueIfSpecified,
|
|
33458
33484
|
namespace: withPositive(defaultXmlOptions, mergeSection({
|
|
33459
33485
|
wildcard: replaceValueIfSpecified
|
|
33460
33486
|
})),
|
|
@@ -33588,8 +33614,7 @@ var selectors4SyntaxDefinition = extendSyntaxDefinition(selectors3SyntaxDefiniti
|
|
|
33588
33614
|
},
|
|
33589
33615
|
pseudoElements: {
|
|
33590
33616
|
definitions: {
|
|
33591
|
-
NoArgument: ['marker']
|
|
33592
|
-
Selector: ['part']
|
|
33617
|
+
NoArgument: ['marker']
|
|
33593
33618
|
}
|
|
33594
33619
|
}
|
|
33595
33620
|
});
|
|
@@ -33674,9 +33699,13 @@ var cssModules = {
|
|
|
33674
33699
|
latest: true,
|
|
33675
33700
|
pseudoElements: {
|
|
33676
33701
|
definitions: {
|
|
33677
|
-
|
|
33702
|
+
String: ['part']
|
|
33678
33703
|
}
|
|
33679
33704
|
}
|
|
33705
|
+
},
|
|
33706
|
+
'css-nesting-1': {
|
|
33707
|
+
latest: true,
|
|
33708
|
+
nestingSelector: true
|
|
33680
33709
|
}
|
|
33681
33710
|
};
|
|
33682
33711
|
var latestSyntaxDefinition = __assign(__assign({}, selectors4SyntaxDefinition), { modules: Object.entries(cssModules)
|
|
@@ -34002,6 +34031,7 @@ function createParser(options) {
|
|
|
34002
34031
|
: [false, false], tagNameEnabled = _e[0], tagNameWildcardEnabled = _e[1];
|
|
34003
34032
|
var idEnabled = Boolean(syntaxDefinition.ids);
|
|
34004
34033
|
var classNamesEnabled = Boolean(syntaxDefinition.classNames);
|
|
34034
|
+
var nestingSelectorEnabled = Boolean(syntaxDefinition.nestingSelector);
|
|
34005
34035
|
var namespaceEnabled = Boolean(syntaxDefinition.namespace);
|
|
34006
34036
|
var namespaceWildcardEnabled = syntaxDefinition.namespace &&
|
|
34007
34037
|
(syntaxDefinition.namespace === true || syntaxDefinition.namespace.wildcard === true);
|
|
@@ -34616,6 +34646,11 @@ function createParser(options) {
|
|
|
34616
34646
|
assert(idName, 'Expected ID name.');
|
|
34617
34647
|
rule.items.push({ type: 'Id', name: idName });
|
|
34618
34648
|
}
|
|
34649
|
+
else if (is('&')) {
|
|
34650
|
+
assert(nestingSelectorEnabled, 'Nesting selector is not enabled.');
|
|
34651
|
+
next();
|
|
34652
|
+
rule.items.push({ type: 'NestingSelector' });
|
|
34653
|
+
}
|
|
34619
34654
|
else if (is('[')) {
|
|
34620
34655
|
assert(attributesEnabled, 'Attributes are not enabled.');
|
|
34621
34656
|
rule.items.push(parseAttribute());
|
|
@@ -34819,6 +34854,9 @@ function render(entity) {
|
|
|
34819
34854
|
else if (entity.type === 'ClassName') {
|
|
34820
34855
|
return ".".concat(escapeIdentifier(entity.name));
|
|
34821
34856
|
}
|
|
34857
|
+
else if (entity.type === 'NestingSelector') {
|
|
34858
|
+
return '&';
|
|
34859
|
+
}
|
|
34822
34860
|
else if (entity.type === 'Attribute') {
|
|
34823
34861
|
var name_1 = entity.name, namespace = entity.namespace, operator = entity.operator, value = entity.value, caseSensitivityModifier = entity.caseSensitivityModifier;
|
|
34824
34862
|
var result = '[';
|
|
@@ -34932,7 +34970,7 @@ function astMethods(type) {
|
|
|
34932
34970
|
* console.log(ast.isSelector(selector)); // prints true
|
|
34933
34971
|
* console.log(ast.isRule(selector)); // prints false
|
|
34934
34972
|
*/
|
|
34935
|
-
var ast = ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign({}, astMethods('Selector')('selector', 'isSelector')), astMethods('Rule')('rule', 'isRule')), astMethods('TagName')('tagName', 'isTagName')), astMethods('Id')('id', 'isId')), astMethods('ClassName')('className', 'isClassName')), astMethods('WildcardTag')('wildcardTag', 'isWildcardTag')), astMethods('NamespaceName')('namespaceName', 'isNamespaceName')), astMethods('WildcardNamespace')('wildcardNamespace', 'isWildcardNamespace')), astMethods('NoNamespace')('noNamespace', 'isNoNamespace')), astMethods('Attribute')('attribute', 'isAttribute')), astMethods('PseudoClass')('pseudoClass', 'isPseudoClass')), astMethods('PseudoElement')('pseudoElement', 'isPseudoElement')), astMethods('String')('string', 'isString')), astMethods('Formula')('formula', 'isFormula')), astMethods('FormulaOfSelector')('formulaOfSelector', 'isFormulaOfSelector')), astMethods('Substitution')('substitution', 'isSubstitution'));
|
|
34973
|
+
var ast = ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign(ast_assign({}, astMethods('Selector')('selector', 'isSelector')), astMethods('Rule')('rule', 'isRule')), astMethods('TagName')('tagName', 'isTagName')), astMethods('Id')('id', 'isId')), astMethods('ClassName')('className', 'isClassName')), astMethods('WildcardTag')('wildcardTag', 'isWildcardTag')), astMethods('NamespaceName')('namespaceName', 'isNamespaceName')), astMethods('WildcardNamespace')('wildcardNamespace', 'isWildcardNamespace')), astMethods('NoNamespace')('noNamespace', 'isNoNamespace')), astMethods('NestingSelector')('nestingSelector', 'isNestingSelector')), astMethods('Attribute')('attribute', 'isAttribute')), astMethods('PseudoClass')('pseudoClass', 'isPseudoClass')), astMethods('PseudoElement')('pseudoElement', 'isPseudoElement')), astMethods('String')('string', 'isString')), astMethods('Formula')('formula', 'isFormula')), astMethods('FormulaOfSelector')('formulaOfSelector', 'isFormulaOfSelector')), astMethods('Substitution')('substitution', 'isSubstitution'));
|
|
34936
34974
|
|
|
34937
34975
|
;// ../node_modules/css-selector-parser/dist/mjs/index.js
|
|
34938
34976
|
|
|
@@ -50226,9 +50264,7 @@ function index(value) {
|
|
|
50226
50264
|
|
|
50227
50265
|
;// ../node_modules/vfile-message/lib/index.js
|
|
50228
50266
|
/**
|
|
50229
|
-
* @
|
|
50230
|
-
* @typedef {import('unist').Point} Point
|
|
50231
|
-
* @typedef {import('unist').Position} Position
|
|
50267
|
+
* @import {Node, Point, Position} from 'unist'
|
|
50232
50268
|
*/
|
|
50233
50269
|
|
|
50234
50270
|
/**
|
|
@@ -50385,7 +50421,6 @@ class VFileMessage extends Error {
|
|
|
50385
50421
|
? options.place.start
|
|
50386
50422
|
: options.place
|
|
50387
50423
|
|
|
50388
|
-
/* eslint-disable no-unused-expressions */
|
|
50389
50424
|
/**
|
|
50390
50425
|
* Stack of ancestor nodes surrounding the message.
|
|
50391
50426
|
*
|
|
@@ -50423,7 +50458,7 @@ class VFileMessage extends Error {
|
|
|
50423
50458
|
*
|
|
50424
50459
|
* @type {string | undefined}
|
|
50425
50460
|
*/
|
|
50426
|
-
this.file
|
|
50461
|
+
this.file = ''
|
|
50427
50462
|
|
|
50428
50463
|
// Field from `Error`.
|
|
50429
50464
|
/**
|
|
@@ -50501,21 +50536,21 @@ class VFileMessage extends Error {
|
|
|
50501
50536
|
*
|
|
50502
50537
|
* @type {string | undefined}
|
|
50503
50538
|
*/
|
|
50504
|
-
this.actual
|
|
50539
|
+
this.actual = undefined
|
|
50505
50540
|
|
|
50506
50541
|
/**
|
|
50507
50542
|
* Suggest acceptable values that can be used instead of `actual`.
|
|
50508
50543
|
*
|
|
50509
50544
|
* @type {Array<string> | undefined}
|
|
50510
50545
|
*/
|
|
50511
|
-
this.expected
|
|
50546
|
+
this.expected = undefined
|
|
50512
50547
|
|
|
50513
50548
|
/**
|
|
50514
50549
|
* Long form description of the message (you should use markdown).
|
|
50515
50550
|
*
|
|
50516
50551
|
* @type {string | undefined}
|
|
50517
50552
|
*/
|
|
50518
|
-
this.note
|
|
50553
|
+
this.note = undefined
|
|
50519
50554
|
|
|
50520
50555
|
/**
|
|
50521
50556
|
* Link to docs for the message.
|
|
@@ -50525,8 +50560,7 @@ class VFileMessage extends Error {
|
|
|
50525
50560
|
*
|
|
50526
50561
|
* @type {string | undefined}
|
|
50527
50562
|
*/
|
|
50528
|
-
this.url
|
|
50529
|
-
/* eslint-enable no-unused-expressions */
|
|
50563
|
+
this.url = undefined
|
|
50530
50564
|
}
|
|
50531
50565
|
}
|
|
50532
50566
|
|
|
@@ -61850,10 +61884,8 @@ function normalizeUri(value) {
|
|
|
61850
61884
|
}
|
|
61851
61885
|
;// ../node_modules/mdast-util-to-hast/lib/footer.js
|
|
61852
61886
|
/**
|
|
61853
|
-
* @
|
|
61854
|
-
* @
|
|
61855
|
-
*
|
|
61856
|
-
* @typedef {import('./state.js').State} State
|
|
61887
|
+
* @import {ElementContent, Element} from 'hast'
|
|
61888
|
+
* @import {State} from './state.js'
|
|
61857
61889
|
*/
|
|
61858
61890
|
|
|
61859
61891
|
/**
|
|
@@ -62104,14 +62136,11 @@ function footer(state) {
|
|
|
62104
62136
|
|
|
62105
62137
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/blockquote.js
|
|
62106
62138
|
/**
|
|
62107
|
-
* @
|
|
62108
|
-
* @
|
|
62109
|
-
* @
|
|
62139
|
+
* @import {Element} from 'hast'
|
|
62140
|
+
* @import {Blockquote} from 'mdast'
|
|
62141
|
+
* @import {State} from '../state.js'
|
|
62110
62142
|
*/
|
|
62111
62143
|
|
|
62112
|
-
// Make VS Code show references to the above types.
|
|
62113
|
-
''
|
|
62114
|
-
|
|
62115
62144
|
/**
|
|
62116
62145
|
* Turn an mdast `blockquote` node into hast.
|
|
62117
62146
|
*
|
|
@@ -62136,15 +62165,11 @@ function blockquote(state, node) {
|
|
|
62136
62165
|
|
|
62137
62166
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/break.js
|
|
62138
62167
|
/**
|
|
62139
|
-
* @
|
|
62140
|
-
* @
|
|
62141
|
-
* @
|
|
62142
|
-
* @typedef {import('../state.js').State} State
|
|
62168
|
+
* @import {Element, Text} from 'hast'
|
|
62169
|
+
* @import {Break} from 'mdast'
|
|
62170
|
+
* @import {State} from '../state.js'
|
|
62143
62171
|
*/
|
|
62144
62172
|
|
|
62145
|
-
// Make VS Code show references to the above types.
|
|
62146
|
-
''
|
|
62147
|
-
|
|
62148
62173
|
/**
|
|
62149
62174
|
* Turn an mdast `break` node into hast.
|
|
62150
62175
|
*
|
|
@@ -62164,15 +62189,11 @@ function hardBreak(state, node) {
|
|
|
62164
62189
|
|
|
62165
62190
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/code.js
|
|
62166
62191
|
/**
|
|
62167
|
-
* @
|
|
62168
|
-
* @
|
|
62169
|
-
* @
|
|
62170
|
-
* @typedef {import('../state.js').State} State
|
|
62192
|
+
* @import {Element, Properties} from 'hast'
|
|
62193
|
+
* @import {Code} from 'mdast'
|
|
62194
|
+
* @import {State} from '../state.js'
|
|
62171
62195
|
*/
|
|
62172
62196
|
|
|
62173
|
-
// Make VS Code show references to the above types.
|
|
62174
|
-
''
|
|
62175
|
-
|
|
62176
62197
|
/**
|
|
62177
62198
|
* Turn an mdast `code` node into hast.
|
|
62178
62199
|
*
|
|
@@ -62187,9 +62208,12 @@ function code(state, node) {
|
|
|
62187
62208
|
const value = node.value ? node.value + '\n' : ''
|
|
62188
62209
|
/** @type {Properties} */
|
|
62189
62210
|
const properties = {}
|
|
62211
|
+
// Someone can write `js python	ruby`.
|
|
62212
|
+
const language = node.lang ? node.lang.split(/\s+/) : []
|
|
62190
62213
|
|
|
62191
|
-
|
|
62192
|
-
|
|
62214
|
+
// GH/CM still drop the non-first languages.
|
|
62215
|
+
if (language.length > 0) {
|
|
62216
|
+
properties.className = ['language-' + language[0]]
|
|
62193
62217
|
}
|
|
62194
62218
|
|
|
62195
62219
|
// Create `<code>`.
|
|
@@ -62216,14 +62240,11 @@ function code(state, node) {
|
|
|
62216
62240
|
|
|
62217
62241
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/delete.js
|
|
62218
62242
|
/**
|
|
62219
|
-
* @
|
|
62220
|
-
* @
|
|
62221
|
-
* @
|
|
62243
|
+
* @import {Element} from 'hast'
|
|
62244
|
+
* @import {Delete} from 'mdast'
|
|
62245
|
+
* @import {State} from '../state.js'
|
|
62222
62246
|
*/
|
|
62223
62247
|
|
|
62224
|
-
// Make VS Code show references to the above types.
|
|
62225
|
-
''
|
|
62226
|
-
|
|
62227
62248
|
/**
|
|
62228
62249
|
* Turn an mdast `delete` node into hast.
|
|
62229
62250
|
*
|
|
@@ -62248,14 +62269,11 @@ function strikethrough(state, node) {
|
|
|
62248
62269
|
|
|
62249
62270
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/emphasis.js
|
|
62250
62271
|
/**
|
|
62251
|
-
* @
|
|
62252
|
-
* @
|
|
62253
|
-
* @
|
|
62272
|
+
* @import {Element} from 'hast'
|
|
62273
|
+
* @import {Emphasis} from 'mdast'
|
|
62274
|
+
* @import {State} from '../state.js'
|
|
62254
62275
|
*/
|
|
62255
62276
|
|
|
62256
|
-
// Make VS Code show references to the above types.
|
|
62257
|
-
''
|
|
62258
|
-
|
|
62259
62277
|
/**
|
|
62260
62278
|
* Turn an mdast `emphasis` node into hast.
|
|
62261
62279
|
*
|
|
@@ -62280,9 +62298,9 @@ function emphasis(state, node) {
|
|
|
62280
62298
|
|
|
62281
62299
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js
|
|
62282
62300
|
/**
|
|
62283
|
-
* @
|
|
62284
|
-
* @
|
|
62285
|
-
* @
|
|
62301
|
+
* @import {Element} from 'hast'
|
|
62302
|
+
* @import {FootnoteReference} from 'mdast'
|
|
62303
|
+
* @import {State} from '../state.js'
|
|
62286
62304
|
*/
|
|
62287
62305
|
|
|
62288
62306
|
|
|
@@ -62352,14 +62370,11 @@ function footnoteReference(state, node) {
|
|
|
62352
62370
|
|
|
62353
62371
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/heading.js
|
|
62354
62372
|
/**
|
|
62355
|
-
* @
|
|
62356
|
-
* @
|
|
62357
|
-
* @
|
|
62373
|
+
* @import {Element} from 'hast'
|
|
62374
|
+
* @import {Heading} from 'mdast'
|
|
62375
|
+
* @import {State} from '../state.js'
|
|
62358
62376
|
*/
|
|
62359
62377
|
|
|
62360
|
-
// Make VS Code show references to the above types.
|
|
62361
|
-
''
|
|
62362
|
-
|
|
62363
62378
|
/**
|
|
62364
62379
|
* Turn an mdast `heading` node into hast.
|
|
62365
62380
|
*
|
|
@@ -62384,15 +62399,12 @@ function heading(state, node) {
|
|
|
62384
62399
|
|
|
62385
62400
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/html.js
|
|
62386
62401
|
/**
|
|
62387
|
-
* @
|
|
62388
|
-
* @
|
|
62389
|
-
* @
|
|
62390
|
-
* @
|
|
62402
|
+
* @import {Element} from 'hast'
|
|
62403
|
+
* @import {Html} from 'mdast'
|
|
62404
|
+
* @import {State} from '../state.js'
|
|
62405
|
+
* @import {Raw} from '../../index.js'
|
|
62391
62406
|
*/
|
|
62392
62407
|
|
|
62393
|
-
// Make VS Code show references to the above types.
|
|
62394
|
-
''
|
|
62395
|
-
|
|
62396
62408
|
/**
|
|
62397
62409
|
* Turn an mdast `html` node into hast (`raw` node in dangerous mode, otherwise
|
|
62398
62410
|
* nothing).
|
|
@@ -62417,17 +62429,11 @@ function handlers_html_html(state, node) {
|
|
|
62417
62429
|
|
|
62418
62430
|
;// ../node_modules/mdast-util-to-hast/lib/revert.js
|
|
62419
62431
|
/**
|
|
62420
|
-
* @
|
|
62421
|
-
*
|
|
62422
|
-
* @
|
|
62423
|
-
* @typedef {import('mdast').Reference} Reference
|
|
62424
|
-
*
|
|
62425
|
-
* @typedef {import('./state.js').State} State
|
|
62432
|
+
* @import {ElementContent} from 'hast'
|
|
62433
|
+
* @import {Reference, Nodes} from 'mdast'
|
|
62434
|
+
* @import {State} from './state.js'
|
|
62426
62435
|
*/
|
|
62427
62436
|
|
|
62428
|
-
// Make VS Code show references to the above types.
|
|
62429
|
-
''
|
|
62430
|
-
|
|
62431
62437
|
/**
|
|
62432
62438
|
* Return the content of a reference without definition as plain text.
|
|
62433
62439
|
*
|
|
@@ -62474,11 +62480,9 @@ function revert(state, node) {
|
|
|
62474
62480
|
|
|
62475
62481
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/image-reference.js
|
|
62476
62482
|
/**
|
|
62477
|
-
* @
|
|
62478
|
-
* @
|
|
62479
|
-
* @
|
|
62480
|
-
* @typedef {import('mdast').ImageReference} ImageReference
|
|
62481
|
-
* @typedef {import('../state.js').State} State
|
|
62483
|
+
* @import {ElementContent, Element, Properties} from 'hast'
|
|
62484
|
+
* @import {ImageReference} from 'mdast'
|
|
62485
|
+
* @import {State} from '../state.js'
|
|
62482
62486
|
*/
|
|
62483
62487
|
|
|
62484
62488
|
|
|
@@ -62517,10 +62521,9 @@ function imageReference(state, node) {
|
|
|
62517
62521
|
|
|
62518
62522
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/image.js
|
|
62519
62523
|
/**
|
|
62520
|
-
* @
|
|
62521
|
-
* @
|
|
62522
|
-
* @
|
|
62523
|
-
* @typedef {import('../state.js').State} State
|
|
62524
|
+
* @import {Element, Properties} from 'hast'
|
|
62525
|
+
* @import {Image} from 'mdast'
|
|
62526
|
+
* @import {State} from '../state.js'
|
|
62524
62527
|
*/
|
|
62525
62528
|
|
|
62526
62529
|
|
|
@@ -62555,15 +62558,11 @@ function image_image(state, node) {
|
|
|
62555
62558
|
|
|
62556
62559
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/inline-code.js
|
|
62557
62560
|
/**
|
|
62558
|
-
* @
|
|
62559
|
-
* @
|
|
62560
|
-
* @
|
|
62561
|
-
* @typedef {import('../state.js').State} State
|
|
62561
|
+
* @import {Element, Text} from 'hast'
|
|
62562
|
+
* @import {InlineCode} from 'mdast'
|
|
62563
|
+
* @import {State} from '../state.js'
|
|
62562
62564
|
*/
|
|
62563
62565
|
|
|
62564
|
-
// Make VS Code show references to the above types.
|
|
62565
|
-
''
|
|
62566
|
-
|
|
62567
62566
|
/**
|
|
62568
62567
|
* Turn an mdast `inlineCode` node into hast.
|
|
62569
62568
|
*
|
|
@@ -62592,11 +62591,9 @@ function inlineCode(state, node) {
|
|
|
62592
62591
|
|
|
62593
62592
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/link-reference.js
|
|
62594
62593
|
/**
|
|
62595
|
-
* @
|
|
62596
|
-
* @
|
|
62597
|
-
* @
|
|
62598
|
-
* @typedef {import('mdast').LinkReference} LinkReference
|
|
62599
|
-
* @typedef {import('../state.js').State} State
|
|
62594
|
+
* @import {ElementContent, Element, Properties} from 'hast'
|
|
62595
|
+
* @import {LinkReference} from 'mdast'
|
|
62596
|
+
* @import {State} from '../state.js'
|
|
62600
62597
|
*/
|
|
62601
62598
|
|
|
62602
62599
|
|
|
@@ -62640,10 +62637,9 @@ function linkReference(state, node) {
|
|
|
62640
62637
|
|
|
62641
62638
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/link.js
|
|
62642
62639
|
/**
|
|
62643
|
-
* @
|
|
62644
|
-
* @
|
|
62645
|
-
* @
|
|
62646
|
-
* @typedef {import('../state.js').State} State
|
|
62640
|
+
* @import {Element, Properties} from 'hast'
|
|
62641
|
+
* @import {Link} from 'mdast'
|
|
62642
|
+
* @import {State} from '../state.js'
|
|
62647
62643
|
*/
|
|
62648
62644
|
|
|
62649
62645
|
|
|
@@ -62679,17 +62675,11 @@ function link_link(state, node) {
|
|
|
62679
62675
|
|
|
62680
62676
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/list-item.js
|
|
62681
62677
|
/**
|
|
62682
|
-
* @
|
|
62683
|
-
* @
|
|
62684
|
-
* @
|
|
62685
|
-
* @typedef {import('mdast').ListItem} ListItem
|
|
62686
|
-
* @typedef {import('mdast').Parents} Parents
|
|
62687
|
-
* @typedef {import('../state.js').State} State
|
|
62678
|
+
* @import {ElementContent, Element, Properties} from 'hast'
|
|
62679
|
+
* @import {ListItem, Parents} from 'mdast'
|
|
62680
|
+
* @import {State} from '../state.js'
|
|
62688
62681
|
*/
|
|
62689
62682
|
|
|
62690
|
-
// Make VS Code show references to the above types.
|
|
62691
|
-
''
|
|
62692
|
-
|
|
62693
62683
|
/**
|
|
62694
62684
|
* Turn an mdast `listItem` node into hast.
|
|
62695
62685
|
*
|
|
@@ -62806,15 +62796,11 @@ function listItemLoose(node) {
|
|
|
62806
62796
|
|
|
62807
62797
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/list.js
|
|
62808
62798
|
/**
|
|
62809
|
-
* @
|
|
62810
|
-
* @
|
|
62811
|
-
* @
|
|
62812
|
-
* @typedef {import('../state.js').State} State
|
|
62799
|
+
* @import {Element, Properties} from 'hast'
|
|
62800
|
+
* @import {List} from 'mdast'
|
|
62801
|
+
* @import {State} from '../state.js'
|
|
62813
62802
|
*/
|
|
62814
62803
|
|
|
62815
|
-
// Make VS Code show references to the above types.
|
|
62816
|
-
''
|
|
62817
|
-
|
|
62818
62804
|
/**
|
|
62819
62805
|
* Turn an mdast `list` node into hast.
|
|
62820
62806
|
*
|
|
@@ -62864,14 +62850,11 @@ function list_list(state, node) {
|
|
|
62864
62850
|
|
|
62865
62851
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/paragraph.js
|
|
62866
62852
|
/**
|
|
62867
|
-
* @
|
|
62868
|
-
* @
|
|
62869
|
-
* @
|
|
62853
|
+
* @import {Element} from 'hast'
|
|
62854
|
+
* @import {Paragraph} from 'mdast'
|
|
62855
|
+
* @import {State} from '../state.js'
|
|
62870
62856
|
*/
|
|
62871
62857
|
|
|
62872
|
-
// Make VS Code show references to the above types.
|
|
62873
|
-
''
|
|
62874
|
-
|
|
62875
62858
|
/**
|
|
62876
62859
|
* Turn an mdast `paragraph` node into hast.
|
|
62877
62860
|
*
|
|
@@ -62896,15 +62879,11 @@ function paragraph(state, node) {
|
|
|
62896
62879
|
|
|
62897
62880
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/root.js
|
|
62898
62881
|
/**
|
|
62899
|
-
* @
|
|
62900
|
-
* @
|
|
62901
|
-
* @
|
|
62902
|
-
* @typedef {import('../state.js').State} State
|
|
62882
|
+
* @import {Parents as HastParents, Root as HastRoot} from 'hast'
|
|
62883
|
+
* @import {Root as MdastRoot} from 'mdast'
|
|
62884
|
+
* @import {State} from '../state.js'
|
|
62903
62885
|
*/
|
|
62904
62886
|
|
|
62905
|
-
// Make VS Code show references to the above types.
|
|
62906
|
-
''
|
|
62907
|
-
|
|
62908
62887
|
/**
|
|
62909
62888
|
* Turn an mdast `root` node into hast.
|
|
62910
62889
|
*
|
|
@@ -62924,14 +62903,11 @@ function root_root(state, node) {
|
|
|
62924
62903
|
|
|
62925
62904
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/strong.js
|
|
62926
62905
|
/**
|
|
62927
|
-
* @
|
|
62928
|
-
* @
|
|
62929
|
-
* @
|
|
62906
|
+
* @import {Element} from 'hast'
|
|
62907
|
+
* @import {Strong} from 'mdast'
|
|
62908
|
+
* @import {State} from '../state.js'
|
|
62930
62909
|
*/
|
|
62931
62910
|
|
|
62932
|
-
// Make VS Code show references to the above types.
|
|
62933
|
-
''
|
|
62934
|
-
|
|
62935
62911
|
/**
|
|
62936
62912
|
* Turn an mdast `strong` node into hast.
|
|
62937
62913
|
*
|
|
@@ -62956,9 +62932,9 @@ function strong(state, node) {
|
|
|
62956
62932
|
|
|
62957
62933
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/table.js
|
|
62958
62934
|
/**
|
|
62959
|
-
* @
|
|
62960
|
-
* @
|
|
62961
|
-
* @
|
|
62935
|
+
* @import {Table} from 'mdast'
|
|
62936
|
+
* @import {Element} from 'hast'
|
|
62937
|
+
* @import {State} from '../state.js'
|
|
62962
62938
|
*/
|
|
62963
62939
|
|
|
62964
62940
|
|
|
@@ -63019,17 +62995,11 @@ function table(state, node) {
|
|
|
63019
62995
|
|
|
63020
62996
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/table-row.js
|
|
63021
62997
|
/**
|
|
63022
|
-
* @
|
|
63023
|
-
* @
|
|
63024
|
-
* @
|
|
63025
|
-
* @typedef {import('mdast').Parents} Parents
|
|
63026
|
-
* @typedef {import('mdast').TableRow} TableRow
|
|
63027
|
-
* @typedef {import('../state.js').State} State
|
|
62998
|
+
* @import {Element, ElementContent, Properties} from 'hast'
|
|
62999
|
+
* @import {Parents, TableRow} from 'mdast'
|
|
63000
|
+
* @import {State} from '../state.js'
|
|
63028
63001
|
*/
|
|
63029
63002
|
|
|
63030
|
-
// Make VS Code show references to the above types.
|
|
63031
|
-
''
|
|
63032
|
-
|
|
63033
63003
|
/**
|
|
63034
63004
|
* Turn an mdast `tableRow` node into hast.
|
|
63035
63005
|
*
|
|
@@ -63090,14 +63060,11 @@ function tableRow(state, node, parent) {
|
|
|
63090
63060
|
|
|
63091
63061
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/table-cell.js
|
|
63092
63062
|
/**
|
|
63093
|
-
* @
|
|
63094
|
-
* @
|
|
63095
|
-
* @
|
|
63063
|
+
* @import {Element} from 'hast'
|
|
63064
|
+
* @import {TableCell} from 'mdast'
|
|
63065
|
+
* @import {State} from '../state.js'
|
|
63096
63066
|
*/
|
|
63097
63067
|
|
|
63098
|
-
// Make VS Code show references to the above types.
|
|
63099
|
-
''
|
|
63100
|
-
|
|
63101
63068
|
/**
|
|
63102
63069
|
* Turn an mdast `tableCell` node into hast.
|
|
63103
63070
|
*
|
|
@@ -63195,10 +63162,9 @@ function trimLine(value, start, end) {
|
|
|
63195
63162
|
|
|
63196
63163
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/text.js
|
|
63197
63164
|
/**
|
|
63198
|
-
* @
|
|
63199
|
-
* @
|
|
63200
|
-
* @
|
|
63201
|
-
* @typedef {import('../state.js').State} State
|
|
63165
|
+
* @import {Element as HastElement, Text as HastText} from 'hast'
|
|
63166
|
+
* @import {Text as MdastText} from 'mdast'
|
|
63167
|
+
* @import {State} from '../state.js'
|
|
63202
63168
|
*/
|
|
63203
63169
|
|
|
63204
63170
|
|
|
@@ -63222,14 +63188,11 @@ function handlers_text_text(state, node) {
|
|
|
63222
63188
|
|
|
63223
63189
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js
|
|
63224
63190
|
/**
|
|
63225
|
-
* @
|
|
63226
|
-
* @
|
|
63227
|
-
* @
|
|
63191
|
+
* @import {Element} from 'hast'
|
|
63192
|
+
* @import {ThematicBreak} from 'mdast'
|
|
63193
|
+
* @import {State} from '../state.js'
|
|
63228
63194
|
*/
|
|
63229
63195
|
|
|
63230
|
-
// Make VS Code show references to the above types.
|
|
63231
|
-
''
|
|
63232
|
-
|
|
63233
63196
|
/**
|
|
63234
63197
|
* Turn an mdast `thematicBreak` node into hast.
|
|
63235
63198
|
*
|
|
@@ -63253,6 +63216,10 @@ function thematic_break_thematicBreak(state, node) {
|
|
|
63253
63216
|
}
|
|
63254
63217
|
|
|
63255
63218
|
;// ../node_modules/mdast-util-to-hast/lib/handlers/index.js
|
|
63219
|
+
/**
|
|
63220
|
+
* @import {Handlers} from '../state.js'
|
|
63221
|
+
*/
|
|
63222
|
+
|
|
63256
63223
|
|
|
63257
63224
|
|
|
63258
63225
|
|
|
@@ -63280,7 +63247,7 @@ function thematic_break_thematicBreak(state, node) {
|
|
|
63280
63247
|
/**
|
|
63281
63248
|
* Default handlers for nodes.
|
|
63282
63249
|
*
|
|
63283
|
-
* @satisfies {
|
|
63250
|
+
* @satisfies {Handlers}
|
|
63284
63251
|
*/
|
|
63285
63252
|
const handlers_handlers = {
|
|
63286
63253
|
blockquote: blockquote,
|
|
@@ -63320,22 +63287,25 @@ function handlers_ignore() {
|
|
|
63320
63287
|
|
|
63321
63288
|
;// ../node_modules/mdast-util-to-hast/lib/state.js
|
|
63322
63289
|
/**
|
|
63323
|
-
* @
|
|
63324
|
-
*
|
|
63325
|
-
*
|
|
63326
|
-
*
|
|
63327
|
-
*
|
|
63328
|
-
*
|
|
63329
|
-
*
|
|
63330
|
-
*
|
|
63331
|
-
* @
|
|
63332
|
-
*
|
|
63333
|
-
*
|
|
63334
|
-
*
|
|
63335
|
-
*
|
|
63336
|
-
*
|
|
63337
|
-
* @
|
|
63338
|
-
* @
|
|
63290
|
+
* @import {
|
|
63291
|
+
* ElementContent as HastElementContent,
|
|
63292
|
+
* Element as HastElement,
|
|
63293
|
+
* Nodes as HastNodes,
|
|
63294
|
+
* Properties as HastProperties,
|
|
63295
|
+
* RootContent as HastRootContent,
|
|
63296
|
+
* Text as HastText
|
|
63297
|
+
* } from 'hast'
|
|
63298
|
+
* @import {
|
|
63299
|
+
* Definition as MdastDefinition,
|
|
63300
|
+
* FootnoteDefinition as MdastFootnoteDefinition,
|
|
63301
|
+
* Nodes as MdastNodes,
|
|
63302
|
+
* Parents as MdastParents
|
|
63303
|
+
* } from 'mdast'
|
|
63304
|
+
* @import {VFile} from 'vfile'
|
|
63305
|
+
* @import {
|
|
63306
|
+
* FootnoteBackContentTemplate,
|
|
63307
|
+
* FootnoteBackLabelTemplate
|
|
63308
|
+
* } from './footer.js'
|
|
63339
63309
|
*/
|
|
63340
63310
|
|
|
63341
63311
|
/**
|
|
@@ -63795,9 +63765,9 @@ function trimMarkdownSpaceStart(value) {
|
|
|
63795
63765
|
|
|
63796
63766
|
;// ../node_modules/mdast-util-to-hast/lib/index.js
|
|
63797
63767
|
/**
|
|
63798
|
-
* @
|
|
63799
|
-
* @
|
|
63800
|
-
* @
|
|
63768
|
+
* @import {Nodes as HastNodes} from 'hast'
|
|
63769
|
+
* @import {Nodes as MdastNodes} from 'mdast'
|
|
63770
|
+
* @import {Options} from './state.js'
|
|
63801
63771
|
*/
|
|
63802
63772
|
|
|
63803
63773
|
|
|
@@ -76336,7 +76306,7 @@ var preview_defaultUrlTransform = url => url;
|
|
|
76336
76306
|
return /^[A-Za-z0-9]+$/.test(element.tagName);
|
|
76337
76307
|
}
|
|
76338
76308
|
};
|
|
76339
|
-
if (skipHtml) {
|
|
76309
|
+
if (!skipHtml) {
|
|
76340
76310
|
rehypePlugins.push(rehypeRaw);
|
|
76341
76311
|
}
|
|
76342
76312
|
var remarkPlugins = [remarkAlert, ...(other.remarkPlugins || []), remarkGfm];
|
|
@@ -76349,7 +76319,7 @@ var preview_defaultUrlTransform = url => url;
|
|
|
76349
76319
|
className: cls,
|
|
76350
76320
|
style: style,
|
|
76351
76321
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Markdown, _extends({}, customProps, other, {
|
|
76352
|
-
skipHtml: skipHtml,
|
|
76322
|
+
skipHtml: !skipHtml,
|
|
76353
76323
|
urlTransform: urlTransform || preview_defaultUrlTransform,
|
|
76354
76324
|
rehypePlugins: pluginsFilter ? pluginsFilter('rehype', rehypePlugins) : rehypePlugins,
|
|
76355
76325
|
remarkPlugins: pluginsFilter ? pluginsFilter('remark', remarkPlugins) : remarkPlugins,
|
|
@@ -80082,19 +80052,47 @@ var quote={name:'quote',keyCommand:'quote',shortcuts:'ctrlcmd+q',prefix:'> ',but
|
|
|
80082
80052
|
;// ./src/commands/strikeThrough.tsx
|
|
80083
80053
|
var strikeThrough_strikethrough={name:'strikethrough',keyCommand:'strikethrough',shortcuts:'ctrl+shift+x',buttonProps:{'aria-label':'Add strikethrough text (ctrl + shift + x)',title:'Add strikethrough text (ctrl + shift + x)'},prefix:'~~',icon:/*#__PURE__*/(0,jsx_runtime.jsx)("svg",{"data-name":"strikethrough",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:/*#__PURE__*/(0,jsx_runtime.jsx)("path",{fill:"currentColor",d:"M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"})}),execute:function execute(state,api){var newSelectionRange=selectWord({text:state.text,selection:state.selection,prefix:state.command.prefix});var state1=api.setSelectionRange(newSelectionRange);executeCommand({api:api,selectedText:state1.selectedText,selection:state.selection,prefix:state.command.prefix});}};
|
|
80084
80054
|
;// ./src/commands/title1.tsx
|
|
80085
|
-
var
|
|
80055
|
+
var heading1={name:'heading1',keyCommand:'heading1',shortcuts:'ctrlcmd+1',prefix:'# ',suffix:'',buttonProps:{'aria-label':'Insert Heading 1 (ctrl + 1)',title:'Insert Heading 1 (ctrl + 1)'},icon:/*#__PURE__*/(0,jsx_runtime.jsx)("div",{style:{fontSize:18,textAlign:'left'},children:"Heading 1"}),execute:function execute(state,api){headingExecute({state:state,api:api,prefix:state.command.prefix,suffix:state.command.suffix});}};/**
|
|
80056
|
+
* @deprecated Use `heading1` instead.
|
|
80057
|
+
* This command is now deprecated and will be removed in future versions.
|
|
80058
|
+
* Use `title1` for inserting Heading 1.
|
|
80059
|
+
*/var title1=heading1;
|
|
80086
80060
|
;// ./src/commands/title.tsx
|
|
80087
|
-
function
|
|
80061
|
+
function headingExecute(_ref){var state=_ref.state,api=_ref.api,prefix=_ref.prefix,_ref$suffix=_ref.suffix,suffix=_ref$suffix===void 0?prefix:_ref$suffix;var newSelectionRange=selectLine({text:state.text,selection:state.selection});var state1=api.setSelectionRange(newSelectionRange);executeCommand({api:api,selectedText:state1.selectedText,selection:state.selection,prefix:prefix,suffix:suffix});}var title_heading=_objectSpread2(_objectSpread2({},heading1),{},{icon:/*#__PURE__*/(0,jsx_runtime.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:/*#__PURE__*/(0,jsx_runtime.jsx)("path",{fill:"currentColor",d:"M15.7083333,468 C7.03242448,468 0,462.030833 0,454.666667 L0,421.333333 C0,413.969167 7.03242448,408 15.7083333,408 L361.291667,408 C369.967576,408 377,413.969167 377,421.333333 L377,454.666667 C377,462.030833 369.967576,468 361.291667,468 L15.7083333,468 Z M21.6666667,366 C9.69989583,366 0,359.831861 0,352.222222 L0,317.777778 C0,310.168139 9.69989583,304 21.6666667,304 L498.333333,304 C510.300104,304 520,310.168139 520,317.777778 L520,352.222222 C520,359.831861 510.300104,366 498.333333,366 L21.6666667,366 Z M136.835938,64 L136.835937,126 L107.25,126 L107.25,251 L40.75,251 L40.75,126 L-5.68434189e-14,126 L-5.68434189e-14,64 L136.835938,64 Z M212,64 L212,251 L161.648438,251 L161.648438,64 L212,64 Z M378,64 L378,126 L343.25,126 L343.25,251 L281.75,251 L281.75,126 L238,126 L238,64 L378,64 Z M449.047619,189.550781 L520,189.550781 L520,251 L405,251 L405,64 L449.047619,64 L449.047619,189.550781 Z"})})});/**
|
|
80062
|
+
* @deprecated Use `heading` instead.
|
|
80063
|
+
* This command is now deprecated and will be removed in future versions.
|
|
80064
|
+
* Use `title` for inserting headings.
|
|
80065
|
+
*/var title=title_heading;
|
|
80088
80066
|
;// ./src/commands/title2.tsx
|
|
80089
|
-
var
|
|
80067
|
+
var heading2={name:'heading2',keyCommand:'heading2',shortcuts:'ctrlcmd+2',prefix:'## ',suffix:'',buttonProps:{'aria-label':'Insert Heading 2 (ctrl + 2)',title:'Insert Heading 2 (ctrl + 2)'},icon:/*#__PURE__*/(0,jsx_runtime.jsx)("div",{style:{fontSize:16,textAlign:'left'},children:"Heading 2"}),execute:function execute(state,api){headingExecute({state:state,api:api,prefix:state.command.prefix,suffix:state.command.suffix});}};/**
|
|
80068
|
+
* @deprecated Use `heading2` instead.
|
|
80069
|
+
* This command is now deprecated and will be removed in future versions.
|
|
80070
|
+
* Use `title2` for inserting Heading 2.
|
|
80071
|
+
*/var title2=heading2;
|
|
80090
80072
|
;// ./src/commands/title3.tsx
|
|
80091
|
-
var
|
|
80073
|
+
var heading3={name:'heading3',keyCommand:'heading3',shortcuts:'ctrlcmd+3',prefix:'### ',suffix:'',buttonProps:{'aria-label':'Insert Heading 3 (ctrl + 3)',title:'Insert Heading 3 (ctrl + 3)'},icon:/*#__PURE__*/(0,jsx_runtime.jsx)("div",{style:{fontSize:15,textAlign:'left'},children:"Heading 3"}),execute:function execute(state,api){headingExecute({state:state,api:api,prefix:state.command.prefix,suffix:state.command.suffix});}};/**
|
|
80074
|
+
* @deprecated Use `heading3` instead.
|
|
80075
|
+
* This command is now deprecated and will be removed in future versions.
|
|
80076
|
+
* Use `title3` for inserting Heading 3.
|
|
80077
|
+
*/var title3=heading3;
|
|
80092
80078
|
;// ./src/commands/title4.tsx
|
|
80093
|
-
var
|
|
80079
|
+
var heading4={name:'heading4',keyCommand:'heading4',shortcuts:'ctrlcmd+4',prefix:'#### ',suffix:'',buttonProps:{'aria-label':'Insert Heading 4 (ctrl + 4)',title:'Insert Heading 4 (ctrl + 4)'},icon:/*#__PURE__*/(0,jsx_runtime.jsx)("div",{style:{fontSize:14,textAlign:'left'},children:"Heading 4"}),execute:function execute(state,api){headingExecute({state:state,api:api,prefix:state.command.prefix,suffix:state.command.suffix});}};/**
|
|
80080
|
+
* @deprecated Use `heading4` instead.
|
|
80081
|
+
* This command is now deprecated and will be removed in future versions.
|
|
80082
|
+
* Use `title4` for inserting Heading 4.
|
|
80083
|
+
*/var title4=heading4;
|
|
80094
80084
|
;// ./src/commands/title5.tsx
|
|
80095
|
-
var
|
|
80085
|
+
var heading5={name:'heading5',keyCommand:'heading5',shortcuts:'ctrlcmd+5',prefix:'##### ',suffix:'',buttonProps:{'aria-label':'Insert Heading 5 (ctrl + 5)',title:'Insert Heading 5 (ctrl + 5)'},icon:/*#__PURE__*/(0,jsx_runtime.jsx)("div",{style:{fontSize:12,textAlign:'left'},children:"Heading 5"}),execute:function execute(state,api){headingExecute({state:state,api:api,prefix:state.command.prefix,suffix:state.command.suffix});}};/**
|
|
80086
|
+
* @deprecated Use `heading5` instead.
|
|
80087
|
+
* This command is now deprecated and will be removed in future versions.
|
|
80088
|
+
* Use `title5` for inserting Heading 5.
|
|
80089
|
+
*/var title5=heading5;
|
|
80096
80090
|
;// ./src/commands/title6.tsx
|
|
80097
|
-
var
|
|
80091
|
+
var heading6={name:'heading6',keyCommand:'heading6',shortcuts:'ctrlcmd+6',prefix:'###### ',suffix:'',buttonProps:{'aria-label':'Insert Heading 6 (ctrl + 6)',title:'Insert Heading 6 (ctrl + 6)'},icon:/*#__PURE__*/(0,jsx_runtime.jsx)("div",{style:{fontSize:12,textAlign:'left'},children:"Heading 6"}),execute:function execute(state,api){headingExecute({state:state,api:api,prefix:state.command.prefix,suffix:state.command.suffix});}};/**
|
|
80092
|
+
* @deprecated Use `heading6` instead.
|
|
80093
|
+
* This command is now deprecated and will be removed in future versions.
|
|
80094
|
+
* Use `title6` for inserting Heading 6.
|
|
80095
|
+
*/var title6=heading6;
|
|
80098
80096
|
;// ./src/commands/table.tsx
|
|
80099
80097
|
var table_table={name:'table',keyCommand:'table',prefix:'\n| Header | Header |\n|--------|--------|\n| Cell | Cell |\n| Cell | Cell |\n| Cell | Cell |\n\n',suffix:'',buttonProps:{'aria-label':'Add table',title:'Add table'},icon:/*#__PURE__*/(0,jsx_runtime.jsx)("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 512 512",children:/*#__PURE__*/(0,jsx_runtime.jsx)("path",{fill:"currentColor",d:"M64 256V160H224v96H64zm0 64H224v96H64V320zm224 96V320H448v96H288zM448 256H288V160H448v96zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"//Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com
|
|
80100
80098
|
})}),execute:function execute(state,api){var newSelectionRange=selectWord({text:state.text,selection:state.selection,prefix:state.command.prefix,suffix:state.command.suffix});var state1=api.setSelectionRange(newSelectionRange);if(state1.selectedText.length>=state.command.prefix.length+state.command.suffix.length&&state1.selectedText.startsWith(state.command.prefix)){// Remove
|