jodit-pro 4.9.21 → 4.9.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +63 -1
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +43 -43
- package/es2015/jodit.js +238 -87
- package/es2015/jodit.min.js +6 -6
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +193 -161
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +30 -30
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +1 -1
- package/es2015/plugins/style/style.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.js +28 -28
- package/es2018/jodit.min.js +6 -6
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +20 -20
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +29 -29
- package/es2021/jodit.js +238 -87
- package/es2021/jodit.min.js +8 -8
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +194 -162
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +20 -20
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +1 -1
- package/es2021/plugins/style/style.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +83 -83
- package/es2021.en/jodit.js +238 -87
- package/es2021.en/jodit.min.js +8 -8
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +194 -162
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +20 -20
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +1 -1
- package/es2021.en/plugins/style/style.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +256 -87
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +221 -174
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/style/style.css +1 -1
- package/es5/plugins/style/style.js +1 -1
- package/es5/plugins/style/style.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/plugins/ai-assistant-pro/ui/input-area/input-area.d.ts +5 -1
- package/esm/plugins/ai-assistant-pro/ui/main-panel/main-panel.d.ts +1 -1
- package/esm/plugins/ai-assistant-pro/ui/settings-button/settings-button.d.ts +7 -1
- package/esm/plugins/ai-assistant-pro/ui/settings-popup/dialog-settings.d.ts +3 -1
- package/esm/plugins/ai-assistant-pro/ui/settings-popup/global-settings.d.ts +5 -1
- package/esm/plugins/ai-assistant-pro/ui/settings-popup/settings-popup.d.ts +7 -1
- package/package.json +1 -1
- package/types/plugins/ai-assistant-pro/ui/input-area/input-area.d.ts +5 -1
- package/types/plugins/ai-assistant-pro/ui/main-panel/main-panel.d.ts +1 -1
- package/types/plugins/ai-assistant-pro/ui/settings-button/settings-button.d.ts +7 -1
- package/types/plugins/ai-assistant-pro/ui/settings-popup/dialog-settings.d.ts +3 -1
- package/types/plugins/ai-assistant-pro/ui/settings-popup/global-settings.d.ts +5 -1
- package/types/plugins/ai-assistant-pro/ui/settings-popup/settings-popup.d.ts +7 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.9.
|
|
4
|
+
* Version: v4.9.25
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -5344,7 +5344,7 @@ UIGlobalSettings = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__de
|
|
|
5344
5344
|
|
|
5345
5345
|
"use strict";
|
|
5346
5346
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5347
|
-
/* harmony export */ marked: function() { return /* binding */
|
|
5347
|
+
/* harmony export */ marked: function() { return /* binding */ g; }
|
|
5348
5348
|
/* harmony export */ });
|
|
5349
5349
|
/* unused harmony exports Hooks, Lexer, Marked, Parser, Renderer, TextRenderer, Tokenizer, defaults, getDefaults, lexer, options, parse, parseInline, parser, setOptions, use, walkTokens */
|
|
5350
5350
|
function _define_property(obj, key, value) {
|
|
@@ -5362,14 +5362,14 @@ function _define_property(obj, key, value) {
|
|
|
5362
5362
|
}
|
|
5363
5363
|
var _class;
|
|
5364
5364
|
/**
|
|
5365
|
-
* marked v17.0.
|
|
5366
|
-
* Copyright (c) 2018-
|
|
5365
|
+
* marked v17.0.3 - a markdown parser
|
|
5366
|
+
* Copyright (c) 2018-2026, MarkedJS. (MIT License)
|
|
5367
5367
|
* Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License)
|
|
5368
5368
|
* https://github.com/markedjs/marked
|
|
5369
5369
|
*/ /**
|
|
5370
5370
|
* DO NOT EDIT THIS FILE
|
|
5371
5371
|
* The code in this file is generated from files in ./src/
|
|
5372
|
-
*/ function
|
|
5372
|
+
*/ function M() {
|
|
5373
5373
|
return {
|
|
5374
5374
|
async: !1,
|
|
5375
5375
|
breaks: !1,
|
|
@@ -5383,11 +5383,11 @@ var _class;
|
|
|
5383
5383
|
walkTokens: null
|
|
5384
5384
|
};
|
|
5385
5385
|
}
|
|
5386
|
-
var T =
|
|
5387
|
-
function
|
|
5386
|
+
var T = M();
|
|
5387
|
+
function H(u) {
|
|
5388
5388
|
T = u;
|
|
5389
5389
|
}
|
|
5390
|
-
var
|
|
5390
|
+
var _ = {
|
|
5391
5391
|
exec: ()=>null
|
|
5392
5392
|
};
|
|
5393
5393
|
function k(u, e = "") {
|
|
@@ -5400,7 +5400,7 @@ function k(u, e = "") {
|
|
|
5400
5400
|
};
|
|
5401
5401
|
return n;
|
|
5402
5402
|
}
|
|
5403
|
-
var
|
|
5403
|
+
var Re = (()=>{
|
|
5404
5404
|
try {
|
|
5405
5405
|
return !!new RegExp("(?<=1)(?<!1)");
|
|
5406
5406
|
} catch {
|
|
@@ -5423,7 +5423,6 @@ var me = (()=>{
|
|
|
5423
5423
|
blockquoteStart: /^ {0,3}>/,
|
|
5424
5424
|
blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g,
|
|
5425
5425
|
blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm,
|
|
5426
|
-
listReplaceTabs: /^\t+/,
|
|
5427
5426
|
listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g,
|
|
5428
5427
|
listIsTask: /^\[[ xX]\] +\S/,
|
|
5429
5428
|
listReplaceTask: /^\[[ xX]\] +/,
|
|
@@ -5463,92 +5462,97 @@ var me = (()=>{
|
|
|
5463
5462
|
hrRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
|
|
5464
5463
|
fencesBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}(?:\`\`\`|~~~)`),
|
|
5465
5464
|
headingBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}#`),
|
|
5466
|
-
htmlBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5465
|
+
htmlBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}<(?:[a-z].*>|!--)`, "i"),
|
|
5466
|
+
blockquoteBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}>`)
|
|
5467
|
+
}, Te = /^(?:[ \t]*(?:\n|$))+/, Oe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, we = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, I = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ye = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, N = / {0,3}(?:[*+-]|\d{1,9}[.)])/, re = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, se = k(re).replace(/bull/g, N).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Pe = k(re).replace(/bull/g, N).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Q = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Se = /^[^\n]+/, F = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, $e = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", F).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), _e = k(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, N).getRegex(), q = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", j = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Le = k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", j).replace("tag", q).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ie = k(Q).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q).getRegex(), Me = k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ie).getRegex(), U = {
|
|
5468
|
+
blockquote: Me,
|
|
5469
|
+
code: Oe,
|
|
5470
|
+
def: $e,
|
|
5471
|
+
fences: we,
|
|
5472
|
+
heading: ye,
|
|
5473
5473
|
hr: I,
|
|
5474
|
-
html:
|
|
5474
|
+
html: Le,
|
|
5475
5475
|
lheading: se,
|
|
5476
|
-
list:
|
|
5477
|
-
newline:
|
|
5476
|
+
list: _e,
|
|
5477
|
+
newline: Te,
|
|
5478
5478
|
paragraph: ie,
|
|
5479
|
-
table:
|
|
5480
|
-
text:
|
|
5481
|
-
}, te = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",
|
|
5479
|
+
table: _,
|
|
5480
|
+
text: Se
|
|
5481
|
+
}, te = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q).getRegex(), ze = {
|
|
5482
5482
|
...U,
|
|
5483
|
-
lheading:
|
|
5483
|
+
lheading: Pe,
|
|
5484
5484
|
table: te,
|
|
5485
|
-
paragraph: k(Q).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", te).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",
|
|
5486
|
-
},
|
|
5485
|
+
paragraph: k(Q).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", te).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q).getRegex()
|
|
5486
|
+
}, Ce = {
|
|
5487
5487
|
...U,
|
|
5488
5488
|
html: k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", j).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
5489
5489
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
5490
5490
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
5491
|
-
fences:
|
|
5491
|
+
fences: _,
|
|
5492
5492
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
5493
5493
|
paragraph: k(Q).replace("hr", I).replace("heading", ` *#{1,6} *[^
|
|
5494
5494
|
]`).replace("lheading", se).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
5495
|
-
},
|
|
5496
|
-
_backpedal:
|
|
5497
|
-
anyPunctuation:
|
|
5498
|
-
autolink:
|
|
5499
|
-
blockSkip:
|
|
5495
|
+
}, Ae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ie = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, oe = /^( {2,}|\\)\n(?!\s*$)/, Ee = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, v = /[\p{P}\p{S}]/u, K = /[\s\p{P}\p{S}]/u, ae = /[^\s\p{P}\p{S}]/u, Be = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, K).getRegex(), le = /(?!~)[\p{P}\p{S}]/u, De = /(?!~)[\s\p{P}\p{S}]/u, qe = /(?:[^\s\p{P}\p{S}]|~)/u, ue = /(?![*_])[\p{P}\p{S}]/u, ve = /(?![*_])[\s\p{P}\p{S}]/u, Ge = /(?:[^\s\p{P}\p{S}]|[*_])/u, He = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Re ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), pe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Ze = k(pe, "u").replace(/punct/g, v).getRegex(), Ne = k(pe, "u").replace(/punct/g, le).getRegex(), ce = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Qe = k(ce, "gu").replace(/notPunctSpace/g, ae).replace(/punctSpace/g, K).replace(/punct/g, v).getRegex(), Fe = k(ce, "gu").replace(/notPunctSpace/g, qe).replace(/punctSpace/g, De).replace(/punct/g, le).getRegex(), je = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ae).replace(/punctSpace/g, K).replace(/punct/g, v).getRegex(), Ue = k(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, ue).getRegex(), Ke = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", We = k(Ke, "gu").replace(/notPunctSpace/g, Ge).replace(/punctSpace/g, ve).replace(/punct/g, ue).getRegex(), Xe = k(/\\(punct)/, "gu").replace(/punct/g, v).getRegex(), Je = k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Ve = k(j).replace("(?:-->|$)", "-->").getRegex(), Ye = k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ve).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), D = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, et = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", D).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), he = k(/^!?\[(label)\]\[(ref)\]/).replace("label", D).replace("ref", F).getRegex(), ke = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", F).getRegex(), tt = k("reflink|nolink(?!\\()", "g").replace("reflink", he).replace("nolink", ke).getRegex(), ne = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, W = {
|
|
5496
|
+
_backpedal: _,
|
|
5497
|
+
anyPunctuation: Xe,
|
|
5498
|
+
autolink: Je,
|
|
5499
|
+
blockSkip: He,
|
|
5500
5500
|
br: oe,
|
|
5501
|
-
code:
|
|
5502
|
-
del:
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5501
|
+
code: Ie,
|
|
5502
|
+
del: _,
|
|
5503
|
+
delLDelim: _,
|
|
5504
|
+
delRDelim: _,
|
|
5505
|
+
emStrongLDelim: Ze,
|
|
5506
|
+
emStrongRDelimAst: Qe,
|
|
5507
|
+
emStrongRDelimUnd: je,
|
|
5508
|
+
escape: Ae,
|
|
5509
|
+
link: et,
|
|
5510
|
+
nolink: ke,
|
|
5511
|
+
punctuation: Be,
|
|
5512
|
+
reflink: he,
|
|
5513
|
+
reflinkSearch: tt,
|
|
5514
|
+
tag: Ye,
|
|
5515
|
+
text: Ee,
|
|
5516
|
+
url: _
|
|
5517
|
+
}, nt = {
|
|
5516
5518
|
...W,
|
|
5517
|
-
link: k(/^!?\[(label)\]\((.*?)\)/).replace("label",
|
|
5518
|
-
reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",
|
|
5519
|
-
},
|
|
5519
|
+
link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", D).getRegex(),
|
|
5520
|
+
reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", D).getRegex()
|
|
5521
|
+
}, Z = {
|
|
5520
5522
|
...W,
|
|
5521
|
-
emStrongRDelimAst:
|
|
5522
|
-
emStrongLDelim:
|
|
5523
|
+
emStrongRDelimAst: Fe,
|
|
5524
|
+
emStrongLDelim: Ne,
|
|
5525
|
+
delLDelim: Ue,
|
|
5526
|
+
delRDelim: We,
|
|
5523
5527
|
url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ne).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
5524
5528
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
5525
5529
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
5526
5530
|
text: k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ne).getRegex()
|
|
5527
|
-
},
|
|
5528
|
-
...
|
|
5531
|
+
}, rt = {
|
|
5532
|
+
...Z,
|
|
5529
5533
|
br: k(oe).replace("{2,}", "*").getRegex(),
|
|
5530
|
-
text: k(
|
|
5534
|
+
text: k(Z.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
5531
5535
|
}, E = {
|
|
5532
5536
|
normal: U,
|
|
5533
|
-
gfm:
|
|
5534
|
-
pedantic:
|
|
5535
|
-
},
|
|
5537
|
+
gfm: ze,
|
|
5538
|
+
pedantic: Ce
|
|
5539
|
+
}, z = {
|
|
5536
5540
|
normal: W,
|
|
5537
|
-
gfm:
|
|
5538
|
-
breaks:
|
|
5539
|
-
pedantic:
|
|
5541
|
+
gfm: Z,
|
|
5542
|
+
breaks: rt,
|
|
5543
|
+
pedantic: nt
|
|
5540
5544
|
};
|
|
5541
|
-
var
|
|
5545
|
+
var st = {
|
|
5542
5546
|
"&": "&",
|
|
5543
5547
|
"<": "<",
|
|
5544
5548
|
">": ">",
|
|
5545
5549
|
'"': """,
|
|
5546
5550
|
"'": "'"
|
|
5547
|
-
},
|
|
5548
|
-
function
|
|
5551
|
+
}, de = (u)=>st[u];
|
|
5552
|
+
function O(u, e) {
|
|
5549
5553
|
if (e) {
|
|
5550
|
-
if (m.escapeTest.test(u)) return u.replace(m.escapeReplace,
|
|
5551
|
-
} else if (m.escapeTestNoEncode.test(u)) return u.replace(m.escapeReplaceNoEncode,
|
|
5554
|
+
if (m.escapeTest.test(u)) return u.replace(m.escapeReplace, de);
|
|
5555
|
+
} else if (m.escapeTestNoEncode.test(u)) return u.replace(m.escapeReplaceNoEncode, de);
|
|
5552
5556
|
return u;
|
|
5553
5557
|
}
|
|
5554
5558
|
function X(u) {
|
|
@@ -5570,7 +5574,7 @@ function J(u, e) {
|
|
|
5570
5574
|
for(; r < n.length; r++)n[r] = n[r].trim().replace(m.slashPipe, "|");
|
|
5571
5575
|
return n;
|
|
5572
5576
|
}
|
|
5573
|
-
function
|
|
5577
|
+
function C(u, e, t) {
|
|
5574
5578
|
let n = u.length;
|
|
5575
5579
|
if (n === 0) return "";
|
|
5576
5580
|
let r = 0;
|
|
@@ -5582,7 +5586,7 @@ function z(u, e, t) {
|
|
|
5582
5586
|
}
|
|
5583
5587
|
return u.slice(0, n - r);
|
|
5584
5588
|
}
|
|
5585
|
-
function
|
|
5589
|
+
function ge(u, e) {
|
|
5586
5590
|
if (u.indexOf(e[1]) === -1) return -1;
|
|
5587
5591
|
let t = 0;
|
|
5588
5592
|
for(let n = 0; n < u.length; n++)if (u[n] === "\\") n++;
|
|
@@ -5590,7 +5594,15 @@ function de(u, e) {
|
|
|
5590
5594
|
else if (u[n] === e[1] && (t--, t < 0)) return n;
|
|
5591
5595
|
return t > 0 ? -2 : -1;
|
|
5592
5596
|
}
|
|
5593
|
-
function
|
|
5597
|
+
function fe(u, e = 0) {
|
|
5598
|
+
let t = e, n = "";
|
|
5599
|
+
for (let r of u)if (r === " ") {
|
|
5600
|
+
let i = 4 - t % 4;
|
|
5601
|
+
n += " ".repeat(i), t += i;
|
|
5602
|
+
} else n += r, t++;
|
|
5603
|
+
return n;
|
|
5604
|
+
}
|
|
5605
|
+
function me(u, e, t, n, r) {
|
|
5594
5606
|
let i = e.href, s = e.title || null, a = u[1].replace(r.other.outputLinkReplace, "$1");
|
|
5595
5607
|
n.state.inLink = !0;
|
|
5596
5608
|
let o = {
|
|
@@ -5603,7 +5615,7 @@ function ge(u, e, t, n, r) {
|
|
|
5603
5615
|
};
|
|
5604
5616
|
return n.state.inLink = !1, o;
|
|
5605
5617
|
}
|
|
5606
|
-
function
|
|
5618
|
+
function it(u, e, t) {
|
|
5607
5619
|
let n = u.match(t.other.indentCodeCompensation);
|
|
5608
5620
|
if (n === null) return e;
|
|
5609
5621
|
let r = n[1];
|
|
@@ -5616,7 +5628,7 @@ function Je(u, e, t) {
|
|
|
5616
5628
|
}).join(`
|
|
5617
5629
|
`);
|
|
5618
5630
|
}
|
|
5619
|
-
var
|
|
5631
|
+
var w = class {
|
|
5620
5632
|
space(e) {
|
|
5621
5633
|
let t = this.rules.block.newline.exec(e);
|
|
5622
5634
|
if (t && t[0].length > 0) return {
|
|
@@ -5632,7 +5644,7 @@ var y = class {
|
|
|
5632
5644
|
type: "code",
|
|
5633
5645
|
raw: t[0],
|
|
5634
5646
|
codeBlockStyle: "indented",
|
|
5635
|
-
text: this.options.pedantic ? n :
|
|
5647
|
+
text: this.options.pedantic ? n : C(n, `
|
|
5636
5648
|
`)
|
|
5637
5649
|
};
|
|
5638
5650
|
}
|
|
@@ -5640,7 +5652,7 @@ var y = class {
|
|
|
5640
5652
|
fences(e) {
|
|
5641
5653
|
let t = this.rules.block.fences.exec(e);
|
|
5642
5654
|
if (t) {
|
|
5643
|
-
let n = t[0], r =
|
|
5655
|
+
let n = t[0], r = it(n, t[3] || "", this.rules);
|
|
5644
5656
|
return {
|
|
5645
5657
|
type: "code",
|
|
5646
5658
|
raw: n,
|
|
@@ -5654,7 +5666,7 @@ var y = class {
|
|
|
5654
5666
|
if (t) {
|
|
5655
5667
|
let n = t[2].trim();
|
|
5656
5668
|
if (this.rules.other.endingHash.test(n)) {
|
|
5657
|
-
let r =
|
|
5669
|
+
let r = C(n, "#");
|
|
5658
5670
|
(this.options.pedantic || !r || this.rules.other.endingSpaceChar.test(r)) && (n = r.trim());
|
|
5659
5671
|
}
|
|
5660
5672
|
return {
|
|
@@ -5670,14 +5682,14 @@ var y = class {
|
|
|
5670
5682
|
let t = this.rules.block.hr.exec(e);
|
|
5671
5683
|
if (t) return {
|
|
5672
5684
|
type: "hr",
|
|
5673
|
-
raw:
|
|
5685
|
+
raw: C(t[0], `
|
|
5674
5686
|
`)
|
|
5675
5687
|
};
|
|
5676
5688
|
}
|
|
5677
5689
|
blockquote(e) {
|
|
5678
5690
|
let t = this.rules.block.blockquote.exec(e);
|
|
5679
5691
|
if (t) {
|
|
5680
|
-
let n =
|
|
5692
|
+
let n = C(t[0], `
|
|
5681
5693
|
`).split(`
|
|
5682
5694
|
`), r = "", i = "", s = [];
|
|
5683
5695
|
for(; n.length > 0;){
|
|
@@ -5692,21 +5704,21 @@ var y = class {
|
|
|
5692
5704
|
r = r ? `${r}
|
|
5693
5705
|
${p}` : p, i = i ? `${i}
|
|
5694
5706
|
${c}` : c;
|
|
5695
|
-
let
|
|
5696
|
-
if (this.lexer.state.top = !0, this.lexer.blockTokens(c, s, !0), this.lexer.state.top =
|
|
5707
|
+
let d = this.lexer.state.top;
|
|
5708
|
+
if (this.lexer.state.top = !0, this.lexer.blockTokens(c, s, !0), this.lexer.state.top = d, n.length === 0) break;
|
|
5697
5709
|
let h = s.at(-1);
|
|
5698
5710
|
if (h?.type === "code") break;
|
|
5699
5711
|
if (h?.type === "blockquote") {
|
|
5700
5712
|
let R = h, f = R.raw + `
|
|
5701
5713
|
` + n.join(`
|
|
5702
|
-
`),
|
|
5703
|
-
s[s.length - 1] =
|
|
5714
|
+
`), S = this.blockquote(f);
|
|
5715
|
+
s[s.length - 1] = S, r = r.substring(0, r.length - R.raw.length) + S.raw, i = i.substring(0, i.length - R.text.length) + S.text;
|
|
5704
5716
|
break;
|
|
5705
5717
|
} else if (h?.type === "list") {
|
|
5706
5718
|
let R = h, f = R.raw + `
|
|
5707
5719
|
` + n.join(`
|
|
5708
|
-
`),
|
|
5709
|
-
s[s.length - 1] =
|
|
5720
|
+
`), S = this.list(f);
|
|
5721
|
+
s[s.length - 1] = S, r = r.substring(0, r.length - h.raw.length) + S.raw, i = i.substring(0, i.length - R.raw.length) + S.raw, n = f.substring(s.at(-1).raw.length).split(`
|
|
5710
5722
|
`);
|
|
5711
5723
|
continue;
|
|
5712
5724
|
}
|
|
@@ -5736,25 +5748,25 @@ ${c}` : c;
|
|
|
5736
5748
|
let l = !1, p = "", c = "";
|
|
5737
5749
|
if (!(t = s.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
5738
5750
|
p = t[0], e = e.substring(p.length);
|
|
5739
|
-
let
|
|
5740
|
-
`, 1)[0]
|
|
5741
|
-
`, 1)[0], R = !
|
|
5742
|
-
if (this.options.pedantic ? (f = 2, c =
|
|
5751
|
+
let d = fe(t[2].split(`
|
|
5752
|
+
`, 1)[0], t[1].length), h = e.split(`
|
|
5753
|
+
`, 1)[0], R = !d.trim(), f = 0;
|
|
5754
|
+
if (this.options.pedantic ? (f = 2, c = d.trimStart()) : R ? f = t[1].length + 1 : (f = d.search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, c = d.slice(f), f += t[1].length), R && this.rules.other.blankLine.test(h) && (p += h + `
|
|
5743
5755
|
`, e = e.substring(h.length + 1), l = !0), !l) {
|
|
5744
|
-
let
|
|
5756
|
+
let S = this.rules.other.nextBulletRegex(f), V = this.rules.other.hrRegex(f), Y = this.rules.other.fencesBeginRegex(f), ee = this.rules.other.headingBeginRegex(f), xe = this.rules.other.htmlBeginRegex(f), be = this.rules.other.blockquoteBeginRegex(f);
|
|
5745
5757
|
for(; e;){
|
|
5746
|
-
let
|
|
5758
|
+
let G = e.split(`
|
|
5747
5759
|
`, 1)[0], A;
|
|
5748
|
-
if (h =
|
|
5760
|
+
if (h = G, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), A = h) : A = h.replace(this.rules.other.tabCharGlobal, " "), Y.test(h) || ee.test(h) || xe.test(h) || be.test(h) || S.test(h) || V.test(h)) break;
|
|
5749
5761
|
if (A.search(this.rules.other.nonSpaceChar) >= f || !h.trim()) c += `
|
|
5750
5762
|
` + A.slice(f);
|
|
5751
5763
|
else {
|
|
5752
|
-
if (R ||
|
|
5764
|
+
if (R || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Y.test(d) || ee.test(d) || V.test(d)) break;
|
|
5753
5765
|
c += `
|
|
5754
5766
|
` + h;
|
|
5755
5767
|
}
|
|
5756
|
-
|
|
5757
|
-
`, e = e.substring(
|
|
5768
|
+
R = !h.trim(), p += G + `
|
|
5769
|
+
`, e = e.substring(G.length + 1), d = A.slice(f);
|
|
5758
5770
|
}
|
|
5759
5771
|
}
|
|
5760
5772
|
i.loose || (a ? i.loose = !0 : this.rules.other.doubleBlankLine.test(p) && (a = !0)), i.items.push({
|
|
@@ -5800,7 +5812,7 @@ ${c}` : c;
|
|
|
5800
5812
|
}
|
|
5801
5813
|
}
|
|
5802
5814
|
if (!i.loose) {
|
|
5803
|
-
let p = l.tokens.filter((
|
|
5815
|
+
let p = l.tokens.filter((d)=>d.type === "space"), c = p.length > 0 && p.some((d)=>this.rules.other.anyLine.test(d.raw));
|
|
5804
5816
|
i.loose = c;
|
|
5805
5817
|
}
|
|
5806
5818
|
}
|
|
@@ -5919,10 +5931,10 @@ ${c}` : c;
|
|
|
5919
5931
|
let n = t[2].trim();
|
|
5920
5932
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(n)) {
|
|
5921
5933
|
if (!this.rules.other.endAngleBracket.test(n)) return;
|
|
5922
|
-
let s =
|
|
5934
|
+
let s = C(n.slice(0, -1), "\\");
|
|
5923
5935
|
if ((n.length - s.length) % 2 === 0) return;
|
|
5924
5936
|
} else {
|
|
5925
|
-
let s =
|
|
5937
|
+
let s = ge(t[2], "()");
|
|
5926
5938
|
if (s === -2) return;
|
|
5927
5939
|
if (s > -1) {
|
|
5928
5940
|
let o = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s;
|
|
@@ -5934,7 +5946,7 @@ ${c}` : c;
|
|
|
5934
5946
|
let s = this.rules.other.pedanticHrefTitle.exec(r);
|
|
5935
5947
|
s && (r = s[1], i = s[3]);
|
|
5936
5948
|
} else i = t[3] ? t[3].slice(1, -1) : "";
|
|
5937
|
-
return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)),
|
|
5949
|
+
return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), me(t, {
|
|
5938
5950
|
href: r && r.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
5939
5951
|
title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
|
|
5940
5952
|
}, t[0], this.lexer, this.rules);
|
|
@@ -5952,7 +5964,7 @@ ${c}` : c;
|
|
|
5952
5964
|
text: s
|
|
5953
5965
|
};
|
|
5954
5966
|
}
|
|
5955
|
-
return
|
|
5967
|
+
return me(n, i, n[0], this.lexer, this.rules);
|
|
5956
5968
|
}
|
|
5957
5969
|
}
|
|
5958
5970
|
emStrong(e, t, n = "") {
|
|
@@ -5975,9 +5987,9 @@ ${c}` : c;
|
|
|
5975
5987
|
}
|
|
5976
5988
|
if (l -= o, l > 0) continue;
|
|
5977
5989
|
o = Math.min(o, o + l + p);
|
|
5978
|
-
let
|
|
5990
|
+
let d = [
|
|
5979
5991
|
...r[0]
|
|
5980
|
-
][0].length, h = e.slice(0, s + r.index +
|
|
5992
|
+
][0].length, h = e.slice(0, s + r.index + d + o);
|
|
5981
5993
|
if (Math.min(s, o) % 2) {
|
|
5982
5994
|
let f = h.slice(1, -1);
|
|
5983
5995
|
return {
|
|
@@ -6015,14 +6027,34 @@ ${c}` : c;
|
|
|
6015
6027
|
raw: t[0]
|
|
6016
6028
|
};
|
|
6017
6029
|
}
|
|
6018
|
-
del(e) {
|
|
6019
|
-
let
|
|
6020
|
-
if (
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6030
|
+
del(e, t, n = "") {
|
|
6031
|
+
let r = this.rules.inline.delLDelim.exec(e);
|
|
6032
|
+
if (!r) return;
|
|
6033
|
+
if (!(r[1] || "") || !n || this.rules.inline.punctuation.exec(n)) {
|
|
6034
|
+
let s = [
|
|
6035
|
+
...r[0]
|
|
6036
|
+
].length - 1, a, o, l = s, p = this.rules.inline.delRDelim;
|
|
6037
|
+
for(p.lastIndex = 0, t = t.slice(-1 * e.length + s); (r = p.exec(t)) != null;){
|
|
6038
|
+
if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a || (o = [
|
|
6039
|
+
...a
|
|
6040
|
+
].length, o !== s)) continue;
|
|
6041
|
+
if (r[3] || r[4]) {
|
|
6042
|
+
l += o;
|
|
6043
|
+
continue;
|
|
6044
|
+
}
|
|
6045
|
+
if (l -= o, l > 0) continue;
|
|
6046
|
+
o = Math.min(o, o + l);
|
|
6047
|
+
let c = [
|
|
6048
|
+
...r[0]
|
|
6049
|
+
][0].length, d = e.slice(0, s + r.index + c + o), h = d.slice(s, -s);
|
|
6050
|
+
return {
|
|
6051
|
+
type: "del",
|
|
6052
|
+
raw: d,
|
|
6053
|
+
text: h,
|
|
6054
|
+
tokens: this.lexer.inlineTokens(h)
|
|
6055
|
+
};
|
|
6056
|
+
}
|
|
6057
|
+
}
|
|
6026
6058
|
}
|
|
6027
6059
|
autolink(e) {
|
|
6028
6060
|
let t = this.rules.inline.autolink.exec(e);
|
|
@@ -6092,7 +6124,7 @@ var x = class u {
|
|
|
6092
6124
|
static get rules() {
|
|
6093
6125
|
return {
|
|
6094
6126
|
block: E,
|
|
6095
|
-
inline:
|
|
6127
|
+
inline: z
|
|
6096
6128
|
};
|
|
6097
6129
|
}
|
|
6098
6130
|
static lex(e, t) {
|
|
@@ -6267,7 +6299,7 @@ var x = class u {
|
|
|
6267
6299
|
e = e.substring(o.raw.length), t.push(o);
|
|
6268
6300
|
continue;
|
|
6269
6301
|
}
|
|
6270
|
-
if (o = this.tokenizer.del(e)) {
|
|
6302
|
+
if (o = this.tokenizer.del(e, n, a)) {
|
|
6271
6303
|
e = e.substring(o.raw.length), t.push(o);
|
|
6272
6304
|
continue;
|
|
6273
6305
|
}
|
|
@@ -6281,11 +6313,11 @@ var x = class u {
|
|
|
6281
6313
|
}
|
|
6282
6314
|
let l = e;
|
|
6283
6315
|
if (this.options.extensions?.startInline) {
|
|
6284
|
-
let p = 1 / 0, c = e.slice(1),
|
|
6316
|
+
let p = 1 / 0, c = e.slice(1), d;
|
|
6285
6317
|
this.options.extensions.startInline.forEach((h)=>{
|
|
6286
|
-
|
|
6318
|
+
d = h.call({
|
|
6287
6319
|
lexer: this
|
|
6288
|
-
}, c), typeof
|
|
6320
|
+
}, c), typeof d == "number" && d >= 0 && (p = Math.min(p, d));
|
|
6289
6321
|
}), p < 1 / 0 && p >= 0 && (l = e.substring(0, p + 1));
|
|
6290
6322
|
}
|
|
6291
6323
|
if (o = this.tokenizer.inlineText(l)) {
|
|
@@ -6310,7 +6342,7 @@ var x = class u {
|
|
|
6310
6342
|
_define_property(this, "state", void 0);
|
|
6311
6343
|
_define_property(this, "inlineQueue", void 0);
|
|
6312
6344
|
_define_property(this, "tokenizer", void 0);
|
|
6313
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new
|
|
6345
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new w, this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
6314
6346
|
inLink: !1,
|
|
6315
6347
|
inRawBlock: !1,
|
|
6316
6348
|
top: !0
|
|
@@ -6318,20 +6350,20 @@ var x = class u {
|
|
|
6318
6350
|
let t = {
|
|
6319
6351
|
other: m,
|
|
6320
6352
|
block: E.normal,
|
|
6321
|
-
inline:
|
|
6353
|
+
inline: z.normal
|
|
6322
6354
|
};
|
|
6323
|
-
this.options.pedantic ? (t.block = E.pedantic, t.inline =
|
|
6355
|
+
this.options.pedantic ? (t.block = E.pedantic, t.inline = z.pedantic) : this.options.gfm && (t.block = E.gfm, this.options.breaks ? t.inline = z.breaks : t.inline = z.gfm), this.tokenizer.rules = t;
|
|
6324
6356
|
}
|
|
6325
6357
|
};
|
|
6326
|
-
var
|
|
6358
|
+
var y = class {
|
|
6327
6359
|
space(e) {
|
|
6328
6360
|
return "";
|
|
6329
6361
|
}
|
|
6330
6362
|
code({ text: e, lang: t, escaped: n }) {
|
|
6331
6363
|
let r = (t || "").match(m.notSpaceStart)?.[0], i = e.replace(m.endingNewline, "") + `
|
|
6332
6364
|
`;
|
|
6333
|
-
return r ? '<pre><code class="language-' +
|
|
6334
|
-
` : "<pre><code>" + (n ? i :
|
|
6365
|
+
return r ? '<pre><code class="language-' + O(r) + '">' + (n ? i : O(i, !0)) + `</code></pre>
|
|
6366
|
+
` : "<pre><code>" + (n ? i : O(i, !0)) + `</code></pre>
|
|
6335
6367
|
`;
|
|
6336
6368
|
}
|
|
6337
6369
|
blockquote({ tokens: e }) {
|
|
@@ -6413,7 +6445,7 @@ ${e}</tr>
|
|
|
6413
6445
|
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
6414
6446
|
}
|
|
6415
6447
|
codespan({ text: e }) {
|
|
6416
|
-
return `<code>${
|
|
6448
|
+
return `<code>${O(e, !0)}</code>`;
|
|
6417
6449
|
}
|
|
6418
6450
|
br(e) {
|
|
6419
6451
|
return "<br>";
|
|
@@ -6426,18 +6458,18 @@ ${e}</tr>
|
|
|
6426
6458
|
if (i === null) return r;
|
|
6427
6459
|
e = i;
|
|
6428
6460
|
let s = '<a href="' + e + '"';
|
|
6429
|
-
return t && (s += ' title="' +
|
|
6461
|
+
return t && (s += ' title="' + O(t) + '"'), s += ">" + r + "</a>", s;
|
|
6430
6462
|
}
|
|
6431
6463
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
6432
6464
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
6433
6465
|
let i = X(e);
|
|
6434
|
-
if (i === null) return
|
|
6466
|
+
if (i === null) return O(n);
|
|
6435
6467
|
e = i;
|
|
6436
|
-
let s = `<img src="${e}" alt="${n}"`;
|
|
6437
|
-
return t && (s += ` title="${
|
|
6468
|
+
let s = `<img src="${e}" alt="${O(n)}"`;
|
|
6469
|
+
return t && (s += ` title="${O(t)}"`), s += ">", s;
|
|
6438
6470
|
}
|
|
6439
6471
|
text(e) {
|
|
6440
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text :
|
|
6472
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : O(e.text);
|
|
6441
6473
|
}
|
|
6442
6474
|
constructor(e){
|
|
6443
6475
|
_define_property(this, "options", void 0);
|
|
@@ -6676,10 +6708,10 @@ var b = class u {
|
|
|
6676
6708
|
_define_property(this, "options", void 0);
|
|
6677
6709
|
_define_property(this, "renderer", void 0);
|
|
6678
6710
|
_define_property(this, "textRenderer", void 0);
|
|
6679
|
-
this.options = e || T, this.options.renderer = this.options.renderer || new
|
|
6711
|
+
this.options = e || T, this.options.renderer = this.options.renderer || new y, this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $;
|
|
6680
6712
|
}
|
|
6681
6713
|
};
|
|
6682
|
-
var
|
|
6714
|
+
var P = (_class = class {
|
|
6683
6715
|
preprocess(e) {
|
|
6684
6716
|
return e;
|
|
6685
6717
|
}
|
|
@@ -6772,7 +6804,7 @@ var B = class {
|
|
|
6772
6804
|
}
|
|
6773
6805
|
"childTokens" in i && i.childTokens && (t.childTokens[i.name] = i.childTokens);
|
|
6774
6806
|
}), r.extensions = t), n.renderer) {
|
|
6775
|
-
let i = this.defaults.renderer || new
|
|
6807
|
+
let i = this.defaults.renderer || new y(this.defaults);
|
|
6776
6808
|
for(let s in n.renderer){
|
|
6777
6809
|
if (!(s in i)) throw new Error(`renderer '${s}' does not exist`);
|
|
6778
6810
|
if ([
|
|
@@ -6788,7 +6820,7 @@ var B = class {
|
|
|
6788
6820
|
r.renderer = i;
|
|
6789
6821
|
}
|
|
6790
6822
|
if (n.tokenizer) {
|
|
6791
|
-
let i = this.defaults.tokenizer || new
|
|
6823
|
+
let i = this.defaults.tokenizer || new w(this.defaults);
|
|
6792
6824
|
for(let s in n.tokenizer){
|
|
6793
6825
|
if (!(s in i)) throw new Error(`tokenizer '${s}' does not exist`);
|
|
6794
6826
|
if ([
|
|
@@ -6805,7 +6837,7 @@ var B = class {
|
|
|
6805
6837
|
r.tokenizer = i;
|
|
6806
6838
|
}
|
|
6807
6839
|
if (n.hooks) {
|
|
6808
|
-
let i = this.defaults.hooks || new
|
|
6840
|
+
let i = this.defaults.hooks || new P;
|
|
6809
6841
|
for(let s in n.hooks){
|
|
6810
6842
|
if (!(s in i)) throw new Error(`hook '${s}' does not exist`);
|
|
6811
6843
|
if ([
|
|
@@ -6813,17 +6845,17 @@ var B = class {
|
|
|
6813
6845
|
"block"
|
|
6814
6846
|
].includes(s)) continue;
|
|
6815
6847
|
let a = s, o = n.hooks[a], l = i[a];
|
|
6816
|
-
|
|
6817
|
-
if (this.defaults.async &&
|
|
6818
|
-
let
|
|
6819
|
-
return l.call(i,
|
|
6848
|
+
P.passThroughHooks.has(s) ? i[a] = (p)=>{
|
|
6849
|
+
if (this.defaults.async && P.passThroughHooksRespectAsync.has(s)) return (async ()=>{
|
|
6850
|
+
let d = await o.call(i, p);
|
|
6851
|
+
return l.call(i, d);
|
|
6820
6852
|
})();
|
|
6821
6853
|
let c = o.call(i, p);
|
|
6822
6854
|
return l.call(i, c);
|
|
6823
6855
|
} : i[a] = (...p)=>{
|
|
6824
6856
|
if (this.defaults.async) return (async ()=>{
|
|
6825
|
-
let
|
|
6826
|
-
return
|
|
6857
|
+
let d = await o.apply(i, p);
|
|
6858
|
+
return d === !1 && (d = await l.apply(i, p)), d;
|
|
6827
6859
|
})();
|
|
6828
6860
|
let c = o.apply(i, p);
|
|
6829
6861
|
return c === !1 && (c = l.apply(i, p)), c;
|
|
@@ -6888,7 +6920,7 @@ var B = class {
|
|
|
6888
6920
|
return (n)=>{
|
|
6889
6921
|
if (n.message += `
|
|
6890
6922
|
Please report this to https://github.com/markedjs/marked.`, e) {
|
|
6891
|
-
let r = "<p>An error occurred:</p><pre>" +
|
|
6923
|
+
let r = "<p>An error occurred:</p><pre>" + O(n.message + "", !0) + "</pre>";
|
|
6892
6924
|
return t ? Promise.resolve(r) : r;
|
|
6893
6925
|
}
|
|
6894
6926
|
if (t) return Promise.reject(n);
|
|
@@ -6896,45 +6928,45 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
6896
6928
|
};
|
|
6897
6929
|
}
|
|
6898
6930
|
constructor(...e){
|
|
6899
|
-
_define_property(this, "defaults",
|
|
6931
|
+
_define_property(this, "defaults", M());
|
|
6900
6932
|
_define_property(this, "options", this.setOptions);
|
|
6901
6933
|
_define_property(this, "parse", this.parseMarkdown(!0));
|
|
6902
6934
|
_define_property(this, "parseInline", this.parseMarkdown(!1));
|
|
6903
6935
|
_define_property(this, "Parser", b);
|
|
6904
|
-
_define_property(this, "Renderer",
|
|
6936
|
+
_define_property(this, "Renderer", y);
|
|
6905
6937
|
_define_property(this, "TextRenderer", $);
|
|
6906
6938
|
_define_property(this, "Lexer", x);
|
|
6907
|
-
_define_property(this, "Tokenizer",
|
|
6908
|
-
_define_property(this, "Hooks",
|
|
6939
|
+
_define_property(this, "Tokenizer", w);
|
|
6940
|
+
_define_property(this, "Hooks", P);
|
|
6909
6941
|
this.use(...e);
|
|
6910
6942
|
}
|
|
6911
6943
|
};
|
|
6912
|
-
var
|
|
6913
|
-
function
|
|
6914
|
-
return
|
|
6944
|
+
var L = new B;
|
|
6945
|
+
function g(u, e) {
|
|
6946
|
+
return L.parse(u, e);
|
|
6915
6947
|
}
|
|
6916
|
-
|
|
6917
|
-
return
|
|
6948
|
+
g.options = g.setOptions = function(u) {
|
|
6949
|
+
return L.setOptions(u), g.defaults = L.defaults, H(g.defaults), g;
|
|
6918
6950
|
};
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
return
|
|
6951
|
+
g.getDefaults = M;
|
|
6952
|
+
g.defaults = T;
|
|
6953
|
+
g.use = function(...u) {
|
|
6954
|
+
return L.use(...u), g.defaults = L.defaults, H(g.defaults), g;
|
|
6923
6955
|
};
|
|
6924
|
-
|
|
6925
|
-
return
|
|
6956
|
+
g.walkTokens = function(u, e) {
|
|
6957
|
+
return L.walkTokens(u, e);
|
|
6926
6958
|
};
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
var
|
|
6959
|
+
g.parseInline = L.parseInline;
|
|
6960
|
+
g.Parser = b;
|
|
6961
|
+
g.parser = b.parse;
|
|
6962
|
+
g.Renderer = y;
|
|
6963
|
+
g.TextRenderer = $;
|
|
6964
|
+
g.Lexer = x;
|
|
6965
|
+
g.lexer = x.lex;
|
|
6966
|
+
g.Tokenizer = w;
|
|
6967
|
+
g.Hooks = P;
|
|
6968
|
+
g.parse = g;
|
|
6969
|
+
var Ut = g.options, Kt = g.setOptions, Wt = g.use, Xt = g.walkTokens, Jt = g.parseInline, Vt = (/* unused pure expression or super */ null && (g)), Yt = b.parse, en = x.lex;
|
|
6938
6970
|
//# sourceMappingURL=marked.esm.js.map
|
|
6939
6971
|
|
|
6940
6972
|
|