jodit-pro 4.9.22 → 4.9.27
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 +44 -44
- package/es2015/jodit.js +229 -101
- package/es2015/jodit.min.js +7 -7
- 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 +30 -30
- package/es2018/jodit.min.js +16 -16
- 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 +32 -32
- package/es2021/jodit.js +229 -101
- package/es2021/jodit.min.js +24 -24
- 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 +229 -101
- package/es2021.en/jodit.min.js +10 -10
- 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 +249 -105
- 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.27
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -5253,7 +5253,7 @@ UIGlobalSettings = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__de
|
|
|
5253
5253
|
|
|
5254
5254
|
"use strict";
|
|
5255
5255
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5256
|
-
/* harmony export */ marked: function() { return /* binding */
|
|
5256
|
+
/* harmony export */ marked: function() { return /* binding */ g; }
|
|
5257
5257
|
/* harmony export */ });
|
|
5258
5258
|
/* unused harmony exports Hooks, Lexer, Marked, Parser, Renderer, TextRenderer, Tokenizer, defaults, getDefaults, lexer, options, parse, parseInline, parser, setOptions, use, walkTokens */
|
|
5259
5259
|
function _define_property(obj, key, value) {
|
|
@@ -5271,14 +5271,14 @@ function _define_property(obj, key, value) {
|
|
|
5271
5271
|
}
|
|
5272
5272
|
var _class;
|
|
5273
5273
|
/**
|
|
5274
|
-
* marked v17.0.
|
|
5275
|
-
* Copyright (c) 2018-
|
|
5274
|
+
* marked v17.0.3 - a markdown parser
|
|
5275
|
+
* Copyright (c) 2018-2026, MarkedJS. (MIT License)
|
|
5276
5276
|
* Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License)
|
|
5277
5277
|
* https://github.com/markedjs/marked
|
|
5278
5278
|
*/ /**
|
|
5279
5279
|
* DO NOT EDIT THIS FILE
|
|
5280
5280
|
* The code in this file is generated from files in ./src/
|
|
5281
|
-
*/ function
|
|
5281
|
+
*/ function M() {
|
|
5282
5282
|
return {
|
|
5283
5283
|
async: !1,
|
|
5284
5284
|
breaks: !1,
|
|
@@ -5292,11 +5292,11 @@ var _class;
|
|
|
5292
5292
|
walkTokens: null
|
|
5293
5293
|
};
|
|
5294
5294
|
}
|
|
5295
|
-
var T =
|
|
5296
|
-
function
|
|
5295
|
+
var T = M();
|
|
5296
|
+
function H(u) {
|
|
5297
5297
|
T = u;
|
|
5298
5298
|
}
|
|
5299
|
-
var
|
|
5299
|
+
var _ = {
|
|
5300
5300
|
exec: ()=>null
|
|
5301
5301
|
};
|
|
5302
5302
|
function k(u, e = "") {
|
|
@@ -5309,7 +5309,7 @@ function k(u, e = "") {
|
|
|
5309
5309
|
};
|
|
5310
5310
|
return n;
|
|
5311
5311
|
}
|
|
5312
|
-
var
|
|
5312
|
+
var Re = (()=>{
|
|
5313
5313
|
try {
|
|
5314
5314
|
return !!new RegExp("(?<=1)(?<!1)");
|
|
5315
5315
|
} catch {
|
|
@@ -5332,7 +5332,6 @@ var me = (()=>{
|
|
|
5332
5332
|
blockquoteStart: /^ {0,3}>/,
|
|
5333
5333
|
blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g,
|
|
5334
5334
|
blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm,
|
|
5335
|
-
listReplaceTabs: /^\t+/,
|
|
5336
5335
|
listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g,
|
|
5337
5336
|
listIsTask: /^\[[ xX]\] +\S/,
|
|
5338
5337
|
listReplaceTask: /^\[[ xX]\] +/,
|
|
@@ -5372,92 +5371,97 @@ var me = (()=>{
|
|
|
5372
5371
|
hrRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
|
|
5373
5372
|
fencesBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}(?:\`\`\`|~~~)`),
|
|
5374
5373
|
headingBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}#`),
|
|
5375
|
-
htmlBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5374
|
+
htmlBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}<(?:[a-z].*>|!--)`, "i"),
|
|
5375
|
+
blockquoteBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}>`)
|
|
5376
|
+
}, 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 = {
|
|
5377
|
+
blockquote: Me,
|
|
5378
|
+
code: Oe,
|
|
5379
|
+
def: $e,
|
|
5380
|
+
fences: we,
|
|
5381
|
+
heading: ye,
|
|
5382
5382
|
hr: I,
|
|
5383
|
-
html:
|
|
5383
|
+
html: Le,
|
|
5384
5384
|
lheading: se,
|
|
5385
|
-
list:
|
|
5386
|
-
newline:
|
|
5385
|
+
list: _e,
|
|
5386
|
+
newline: Te,
|
|
5387
5387
|
paragraph: ie,
|
|
5388
|
-
table:
|
|
5389
|
-
text:
|
|
5390
|
-
}, 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",
|
|
5388
|
+
table: _,
|
|
5389
|
+
text: Se
|
|
5390
|
+
}, 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 = {
|
|
5391
5391
|
...U,
|
|
5392
|
-
lheading:
|
|
5392
|
+
lheading: Pe,
|
|
5393
5393
|
table: te,
|
|
5394
|
-
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",
|
|
5395
|
-
},
|
|
5394
|
+
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()
|
|
5395
|
+
}, Ce = {
|
|
5396
5396
|
...U,
|
|
5397
5397
|
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(),
|
|
5398
5398
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
5399
5399
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
5400
|
-
fences:
|
|
5400
|
+
fences: _,
|
|
5401
5401
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
5402
5402
|
paragraph: k(Q).replace("hr", I).replace("heading", ` *#{1,6} *[^
|
|
5403
5403
|
]`).replace("lheading", se).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
5404
|
-
},
|
|
5405
|
-
_backpedal:
|
|
5406
|
-
anyPunctuation:
|
|
5407
|
-
autolink:
|
|
5408
|
-
blockSkip:
|
|
5404
|
+
}, 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 = {
|
|
5405
|
+
_backpedal: _,
|
|
5406
|
+
anyPunctuation: Xe,
|
|
5407
|
+
autolink: Je,
|
|
5408
|
+
blockSkip: He,
|
|
5409
5409
|
br: oe,
|
|
5410
|
-
code:
|
|
5411
|
-
del:
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5410
|
+
code: Ie,
|
|
5411
|
+
del: _,
|
|
5412
|
+
delLDelim: _,
|
|
5413
|
+
delRDelim: _,
|
|
5414
|
+
emStrongLDelim: Ze,
|
|
5415
|
+
emStrongRDelimAst: Qe,
|
|
5416
|
+
emStrongRDelimUnd: je,
|
|
5417
|
+
escape: Ae,
|
|
5418
|
+
link: et,
|
|
5419
|
+
nolink: ke,
|
|
5420
|
+
punctuation: Be,
|
|
5421
|
+
reflink: he,
|
|
5422
|
+
reflinkSearch: tt,
|
|
5423
|
+
tag: Ye,
|
|
5424
|
+
text: Ee,
|
|
5425
|
+
url: _
|
|
5426
|
+
}, nt = {
|
|
5425
5427
|
...W,
|
|
5426
|
-
link: k(/^!?\[(label)\]\((.*?)\)/).replace("label",
|
|
5427
|
-
reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",
|
|
5428
|
-
},
|
|
5428
|
+
link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", D).getRegex(),
|
|
5429
|
+
reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", D).getRegex()
|
|
5430
|
+
}, Z = {
|
|
5429
5431
|
...W,
|
|
5430
|
-
emStrongRDelimAst:
|
|
5431
|
-
emStrongLDelim:
|
|
5432
|
+
emStrongRDelimAst: Fe,
|
|
5433
|
+
emStrongLDelim: Ne,
|
|
5434
|
+
delLDelim: Ue,
|
|
5435
|
+
delRDelim: We,
|
|
5432
5436
|
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(),
|
|
5433
5437
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
5434
5438
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
5435
5439
|
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()
|
|
5436
|
-
},
|
|
5437
|
-
...
|
|
5440
|
+
}, rt = {
|
|
5441
|
+
...Z,
|
|
5438
5442
|
br: k(oe).replace("{2,}", "*").getRegex(),
|
|
5439
|
-
text: k(
|
|
5443
|
+
text: k(Z.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
5440
5444
|
}, E = {
|
|
5441
5445
|
normal: U,
|
|
5442
|
-
gfm:
|
|
5443
|
-
pedantic:
|
|
5444
|
-
},
|
|
5446
|
+
gfm: ze,
|
|
5447
|
+
pedantic: Ce
|
|
5448
|
+
}, z = {
|
|
5445
5449
|
normal: W,
|
|
5446
|
-
gfm:
|
|
5447
|
-
breaks:
|
|
5448
|
-
pedantic:
|
|
5450
|
+
gfm: Z,
|
|
5451
|
+
breaks: rt,
|
|
5452
|
+
pedantic: nt
|
|
5449
5453
|
};
|
|
5450
|
-
var
|
|
5454
|
+
var st = {
|
|
5451
5455
|
"&": "&",
|
|
5452
5456
|
"<": "<",
|
|
5453
5457
|
">": ">",
|
|
5454
5458
|
'"': """,
|
|
5455
5459
|
"'": "'"
|
|
5456
|
-
},
|
|
5457
|
-
function
|
|
5460
|
+
}, de = (u)=>st[u];
|
|
5461
|
+
function O(u, e) {
|
|
5458
5462
|
if (e) {
|
|
5459
|
-
if (m.escapeTest.test(u)) return u.replace(m.escapeReplace,
|
|
5460
|
-
} else if (m.escapeTestNoEncode.test(u)) return u.replace(m.escapeReplaceNoEncode,
|
|
5463
|
+
if (m.escapeTest.test(u)) return u.replace(m.escapeReplace, de);
|
|
5464
|
+
} else if (m.escapeTestNoEncode.test(u)) return u.replace(m.escapeReplaceNoEncode, de);
|
|
5461
5465
|
return u;
|
|
5462
5466
|
}
|
|
5463
5467
|
function X(u) {
|
|
@@ -5479,7 +5483,7 @@ function J(u, e) {
|
|
|
5479
5483
|
for(; r < n.length; r++)n[r] = n[r].trim().replace(m.slashPipe, "|");
|
|
5480
5484
|
return n;
|
|
5481
5485
|
}
|
|
5482
|
-
function
|
|
5486
|
+
function C(u, e, t) {
|
|
5483
5487
|
let n = u.length;
|
|
5484
5488
|
if (n === 0) return "";
|
|
5485
5489
|
let r = 0;
|
|
@@ -5491,7 +5495,7 @@ function z(u, e, t) {
|
|
|
5491
5495
|
}
|
|
5492
5496
|
return u.slice(0, n - r);
|
|
5493
5497
|
}
|
|
5494
|
-
function
|
|
5498
|
+
function ge(u, e) {
|
|
5495
5499
|
if (u.indexOf(e[1]) === -1) return -1;
|
|
5496
5500
|
let t = 0;
|
|
5497
5501
|
for(let n = 0; n < u.length; n++)if (u[n] === "\\") n++;
|
|
@@ -5499,7 +5503,15 @@ function de(u, e) {
|
|
|
5499
5503
|
else if (u[n] === e[1] && (t--, t < 0)) return n;
|
|
5500
5504
|
return t > 0 ? -2 : -1;
|
|
5501
5505
|
}
|
|
5502
|
-
function
|
|
5506
|
+
function fe(u, e = 0) {
|
|
5507
|
+
let t = e, n = "";
|
|
5508
|
+
for (let r of u)if (r === " ") {
|
|
5509
|
+
let i = 4 - t % 4;
|
|
5510
|
+
n += " ".repeat(i), t += i;
|
|
5511
|
+
} else n += r, t++;
|
|
5512
|
+
return n;
|
|
5513
|
+
}
|
|
5514
|
+
function me(u, e, t, n, r) {
|
|
5503
5515
|
let i = e.href, s = e.title || null, a = u[1].replace(r.other.outputLinkReplace, "$1");
|
|
5504
5516
|
n.state.inLink = !0;
|
|
5505
5517
|
let o = {
|
|
@@ -5512,7 +5524,7 @@ function ge(u, e, t, n, r) {
|
|
|
5512
5524
|
};
|
|
5513
5525
|
return n.state.inLink = !1, o;
|
|
5514
5526
|
}
|
|
5515
|
-
function
|
|
5527
|
+
function it(u, e, t) {
|
|
5516
5528
|
let n = u.match(t.other.indentCodeCompensation);
|
|
5517
5529
|
if (n === null) return e;
|
|
5518
5530
|
let r = n[1];
|
|
@@ -5525,7 +5537,7 @@ function Je(u, e, t) {
|
|
|
5525
5537
|
}).join(`
|
|
5526
5538
|
`);
|
|
5527
5539
|
}
|
|
5528
|
-
var
|
|
5540
|
+
var w = class {
|
|
5529
5541
|
space(e) {
|
|
5530
5542
|
let t = this.rules.block.newline.exec(e);
|
|
5531
5543
|
if (t && t[0].length > 0) return {
|
|
@@ -5541,7 +5553,7 @@ var y = class {
|
|
|
5541
5553
|
type: "code",
|
|
5542
5554
|
raw: t[0],
|
|
5543
5555
|
codeBlockStyle: "indented",
|
|
5544
|
-
text: this.options.pedantic ? n :
|
|
5556
|
+
text: this.options.pedantic ? n : C(n, `
|
|
5545
5557
|
`)
|
|
5546
5558
|
};
|
|
5547
5559
|
}
|
|
@@ -5549,7 +5561,7 @@ var y = class {
|
|
|
5549
5561
|
fences(e) {
|
|
5550
5562
|
let t = this.rules.block.fences.exec(e);
|
|
5551
5563
|
if (t) {
|
|
5552
|
-
let n = t[0], r =
|
|
5564
|
+
let n = t[0], r = it(n, t[3] || "", this.rules);
|
|
5553
5565
|
return {
|
|
5554
5566
|
type: "code",
|
|
5555
5567
|
raw: n,
|
|
@@ -5563,7 +5575,7 @@ var y = class {
|
|
|
5563
5575
|
if (t) {
|
|
5564
5576
|
let n = t[2].trim();
|
|
5565
5577
|
if (this.rules.other.endingHash.test(n)) {
|
|
5566
|
-
let r =
|
|
5578
|
+
let r = C(n, "#");
|
|
5567
5579
|
(this.options.pedantic || !r || this.rules.other.endingSpaceChar.test(r)) && (n = r.trim());
|
|
5568
5580
|
}
|
|
5569
5581
|
return {
|
|
@@ -5579,14 +5591,14 @@ var y = class {
|
|
|
5579
5591
|
let t = this.rules.block.hr.exec(e);
|
|
5580
5592
|
if (t) return {
|
|
5581
5593
|
type: "hr",
|
|
5582
|
-
raw:
|
|
5594
|
+
raw: C(t[0], `
|
|
5583
5595
|
`)
|
|
5584
5596
|
};
|
|
5585
5597
|
}
|
|
5586
5598
|
blockquote(e) {
|
|
5587
5599
|
let t = this.rules.block.blockquote.exec(e);
|
|
5588
5600
|
if (t) {
|
|
5589
|
-
let n =
|
|
5601
|
+
let n = C(t[0], `
|
|
5590
5602
|
`).split(`
|
|
5591
5603
|
`), r = "", i = "", s = [];
|
|
5592
5604
|
for(; n.length > 0;){
|
|
@@ -5601,21 +5613,21 @@ var y = class {
|
|
|
5601
5613
|
r = r ? `${r}
|
|
5602
5614
|
${p}` : p, i = i ? `${i}
|
|
5603
5615
|
${c}` : c;
|
|
5604
|
-
let
|
|
5605
|
-
if (this.lexer.state.top = !0, this.lexer.blockTokens(c, s, !0), this.lexer.state.top =
|
|
5616
|
+
let d = this.lexer.state.top;
|
|
5617
|
+
if (this.lexer.state.top = !0, this.lexer.blockTokens(c, s, !0), this.lexer.state.top = d, n.length === 0) break;
|
|
5606
5618
|
let h = s.at(-1);
|
|
5607
5619
|
if (h?.type === "code") break;
|
|
5608
5620
|
if (h?.type === "blockquote") {
|
|
5609
5621
|
let R = h, f = R.raw + `
|
|
5610
5622
|
` + n.join(`
|
|
5611
|
-
`),
|
|
5612
|
-
s[s.length - 1] =
|
|
5623
|
+
`), S = this.blockquote(f);
|
|
5624
|
+
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;
|
|
5613
5625
|
break;
|
|
5614
5626
|
} else if (h?.type === "list") {
|
|
5615
5627
|
let R = h, f = R.raw + `
|
|
5616
5628
|
` + n.join(`
|
|
5617
|
-
`),
|
|
5618
|
-
s[s.length - 1] =
|
|
5629
|
+
`), S = this.list(f);
|
|
5630
|
+
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(`
|
|
5619
5631
|
`);
|
|
5620
5632
|
continue;
|
|
5621
5633
|
}
|
|
@@ -5645,25 +5657,25 @@ ${c}` : c;
|
|
|
5645
5657
|
let l = !1, p = "", c = "";
|
|
5646
5658
|
if (!(t = s.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
5647
5659
|
p = t[0], e = e.substring(p.length);
|
|
5648
|
-
let
|
|
5649
|
-
`, 1)[0]
|
|
5650
|
-
`, 1)[0], R = !
|
|
5651
|
-
if (this.options.pedantic ? (f = 2, c =
|
|
5660
|
+
let d = fe(t[2].split(`
|
|
5661
|
+
`, 1)[0], t[1].length), h = e.split(`
|
|
5662
|
+
`, 1)[0], R = !d.trim(), f = 0;
|
|
5663
|
+
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 + `
|
|
5652
5664
|
`, e = e.substring(h.length + 1), l = !0), !l) {
|
|
5653
|
-
let
|
|
5665
|
+
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);
|
|
5654
5666
|
for(; e;){
|
|
5655
|
-
let
|
|
5667
|
+
let G = e.split(`
|
|
5656
5668
|
`, 1)[0], A;
|
|
5657
|
-
if (h =
|
|
5669
|
+
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;
|
|
5658
5670
|
if (A.search(this.rules.other.nonSpaceChar) >= f || !h.trim()) c += `
|
|
5659
5671
|
` + A.slice(f);
|
|
5660
5672
|
else {
|
|
5661
|
-
if (R ||
|
|
5673
|
+
if (R || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Y.test(d) || ee.test(d) || V.test(d)) break;
|
|
5662
5674
|
c += `
|
|
5663
5675
|
` + h;
|
|
5664
5676
|
}
|
|
5665
|
-
|
|
5666
|
-
`, e = e.substring(
|
|
5677
|
+
R = !h.trim(), p += G + `
|
|
5678
|
+
`, e = e.substring(G.length + 1), d = A.slice(f);
|
|
5667
5679
|
}
|
|
5668
5680
|
}
|
|
5669
5681
|
i.loose || (a ? i.loose = !0 : this.rules.other.doubleBlankLine.test(p) && (a = !0)), i.items.push({
|
|
@@ -5709,7 +5721,7 @@ ${c}` : c;
|
|
|
5709
5721
|
}
|
|
5710
5722
|
}
|
|
5711
5723
|
if (!i.loose) {
|
|
5712
|
-
let p = l.tokens.filter((
|
|
5724
|
+
let p = l.tokens.filter((d)=>d.type === "space"), c = p.length > 0 && p.some((d)=>this.rules.other.anyLine.test(d.raw));
|
|
5713
5725
|
i.loose = c;
|
|
5714
5726
|
}
|
|
5715
5727
|
}
|
|
@@ -5828,10 +5840,10 @@ ${c}` : c;
|
|
|
5828
5840
|
let n = t[2].trim();
|
|
5829
5841
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(n)) {
|
|
5830
5842
|
if (!this.rules.other.endAngleBracket.test(n)) return;
|
|
5831
|
-
let s =
|
|
5843
|
+
let s = C(n.slice(0, -1), "\\");
|
|
5832
5844
|
if ((n.length - s.length) % 2 === 0) return;
|
|
5833
5845
|
} else {
|
|
5834
|
-
let s =
|
|
5846
|
+
let s = ge(t[2], "()");
|
|
5835
5847
|
if (s === -2) return;
|
|
5836
5848
|
if (s > -1) {
|
|
5837
5849
|
let o = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s;
|
|
@@ -5843,7 +5855,7 @@ ${c}` : c;
|
|
|
5843
5855
|
let s = this.rules.other.pedanticHrefTitle.exec(r);
|
|
5844
5856
|
s && (r = s[1], i = s[3]);
|
|
5845
5857
|
} else i = t[3] ? t[3].slice(1, -1) : "";
|
|
5846
|
-
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)),
|
|
5858
|
+
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, {
|
|
5847
5859
|
href: r && r.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
5848
5860
|
title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
|
|
5849
5861
|
}, t[0], this.lexer, this.rules);
|
|
@@ -5861,7 +5873,7 @@ ${c}` : c;
|
|
|
5861
5873
|
text: s
|
|
5862
5874
|
};
|
|
5863
5875
|
}
|
|
5864
|
-
return
|
|
5876
|
+
return me(n, i, n[0], this.lexer, this.rules);
|
|
5865
5877
|
}
|
|
5866
5878
|
}
|
|
5867
5879
|
emStrong(e, t, n = "") {
|
|
@@ -5884,9 +5896,9 @@ ${c}` : c;
|
|
|
5884
5896
|
}
|
|
5885
5897
|
if (l -= o, l > 0) continue;
|
|
5886
5898
|
o = Math.min(o, o + l + p);
|
|
5887
|
-
let
|
|
5899
|
+
let d = [
|
|
5888
5900
|
...r[0]
|
|
5889
|
-
][0].length, h = e.slice(0, s + r.index +
|
|
5901
|
+
][0].length, h = e.slice(0, s + r.index + d + o);
|
|
5890
5902
|
if (Math.min(s, o) % 2) {
|
|
5891
5903
|
let f = h.slice(1, -1);
|
|
5892
5904
|
return {
|
|
@@ -5924,14 +5936,34 @@ ${c}` : c;
|
|
|
5924
5936
|
raw: t[0]
|
|
5925
5937
|
};
|
|
5926
5938
|
}
|
|
5927
|
-
del(e) {
|
|
5928
|
-
let
|
|
5929
|
-
if (
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5939
|
+
del(e, t, n = "") {
|
|
5940
|
+
let r = this.rules.inline.delLDelim.exec(e);
|
|
5941
|
+
if (!r) return;
|
|
5942
|
+
if (!(r[1] || "") || !n || this.rules.inline.punctuation.exec(n)) {
|
|
5943
|
+
let s = [
|
|
5944
|
+
...r[0]
|
|
5945
|
+
].length - 1, a, o, l = s, p = this.rules.inline.delRDelim;
|
|
5946
|
+
for(p.lastIndex = 0, t = t.slice(-1 * e.length + s); (r = p.exec(t)) != null;){
|
|
5947
|
+
if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a || (o = [
|
|
5948
|
+
...a
|
|
5949
|
+
].length, o !== s)) continue;
|
|
5950
|
+
if (r[3] || r[4]) {
|
|
5951
|
+
l += o;
|
|
5952
|
+
continue;
|
|
5953
|
+
}
|
|
5954
|
+
if (l -= o, l > 0) continue;
|
|
5955
|
+
o = Math.min(o, o + l);
|
|
5956
|
+
let c = [
|
|
5957
|
+
...r[0]
|
|
5958
|
+
][0].length, d = e.slice(0, s + r.index + c + o), h = d.slice(s, -s);
|
|
5959
|
+
return {
|
|
5960
|
+
type: "del",
|
|
5961
|
+
raw: d,
|
|
5962
|
+
text: h,
|
|
5963
|
+
tokens: this.lexer.inlineTokens(h)
|
|
5964
|
+
};
|
|
5965
|
+
}
|
|
5966
|
+
}
|
|
5935
5967
|
}
|
|
5936
5968
|
autolink(e) {
|
|
5937
5969
|
let t = this.rules.inline.autolink.exec(e);
|
|
@@ -6001,7 +6033,7 @@ var x = class u {
|
|
|
6001
6033
|
static get rules() {
|
|
6002
6034
|
return {
|
|
6003
6035
|
block: E,
|
|
6004
|
-
inline:
|
|
6036
|
+
inline: z
|
|
6005
6037
|
};
|
|
6006
6038
|
}
|
|
6007
6039
|
static lex(e, t) {
|
|
@@ -6176,7 +6208,7 @@ var x = class u {
|
|
|
6176
6208
|
e = e.substring(o.raw.length), t.push(o);
|
|
6177
6209
|
continue;
|
|
6178
6210
|
}
|
|
6179
|
-
if (o = this.tokenizer.del(e)) {
|
|
6211
|
+
if (o = this.tokenizer.del(e, n, a)) {
|
|
6180
6212
|
e = e.substring(o.raw.length), t.push(o);
|
|
6181
6213
|
continue;
|
|
6182
6214
|
}
|
|
@@ -6190,11 +6222,11 @@ var x = class u {
|
|
|
6190
6222
|
}
|
|
6191
6223
|
let l = e;
|
|
6192
6224
|
if (this.options.extensions?.startInline) {
|
|
6193
|
-
let p = 1 / 0, c = e.slice(1),
|
|
6225
|
+
let p = 1 / 0, c = e.slice(1), d;
|
|
6194
6226
|
this.options.extensions.startInline.forEach((h)=>{
|
|
6195
|
-
|
|
6227
|
+
d = h.call({
|
|
6196
6228
|
lexer: this
|
|
6197
|
-
}, c), typeof
|
|
6229
|
+
}, c), typeof d == "number" && d >= 0 && (p = Math.min(p, d));
|
|
6198
6230
|
}), p < 1 / 0 && p >= 0 && (l = e.substring(0, p + 1));
|
|
6199
6231
|
}
|
|
6200
6232
|
if (o = this.tokenizer.inlineText(l)) {
|
|
@@ -6219,7 +6251,7 @@ var x = class u {
|
|
|
6219
6251
|
_define_property(this, "state", void 0);
|
|
6220
6252
|
_define_property(this, "inlineQueue", void 0);
|
|
6221
6253
|
_define_property(this, "tokenizer", void 0);
|
|
6222
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new
|
|
6254
|
+
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 = {
|
|
6223
6255
|
inLink: !1,
|
|
6224
6256
|
inRawBlock: !1,
|
|
6225
6257
|
top: !0
|
|
@@ -6227,20 +6259,20 @@ var x = class u {
|
|
|
6227
6259
|
let t = {
|
|
6228
6260
|
other: m,
|
|
6229
6261
|
block: E.normal,
|
|
6230
|
-
inline:
|
|
6262
|
+
inline: z.normal
|
|
6231
6263
|
};
|
|
6232
|
-
this.options.pedantic ? (t.block = E.pedantic, t.inline =
|
|
6264
|
+
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;
|
|
6233
6265
|
}
|
|
6234
6266
|
};
|
|
6235
|
-
var
|
|
6267
|
+
var y = class {
|
|
6236
6268
|
space(e) {
|
|
6237
6269
|
return "";
|
|
6238
6270
|
}
|
|
6239
6271
|
code({ text: e, lang: t, escaped: n }) {
|
|
6240
6272
|
let r = (t || "").match(m.notSpaceStart)?.[0], i = e.replace(m.endingNewline, "") + `
|
|
6241
6273
|
`;
|
|
6242
|
-
return r ? '<pre><code class="language-' +
|
|
6243
|
-
` : "<pre><code>" + (n ? i :
|
|
6274
|
+
return r ? '<pre><code class="language-' + O(r) + '">' + (n ? i : O(i, !0)) + `</code></pre>
|
|
6275
|
+
` : "<pre><code>" + (n ? i : O(i, !0)) + `</code></pre>
|
|
6244
6276
|
`;
|
|
6245
6277
|
}
|
|
6246
6278
|
blockquote({ tokens: e }) {
|
|
@@ -6322,7 +6354,7 @@ ${e}</tr>
|
|
|
6322
6354
|
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
6323
6355
|
}
|
|
6324
6356
|
codespan({ text: e }) {
|
|
6325
|
-
return `<code>${
|
|
6357
|
+
return `<code>${O(e, !0)}</code>`;
|
|
6326
6358
|
}
|
|
6327
6359
|
br(e) {
|
|
6328
6360
|
return "<br>";
|
|
@@ -6335,18 +6367,18 @@ ${e}</tr>
|
|
|
6335
6367
|
if (i === null) return r;
|
|
6336
6368
|
e = i;
|
|
6337
6369
|
let s = '<a href="' + e + '"';
|
|
6338
|
-
return t && (s += ' title="' +
|
|
6370
|
+
return t && (s += ' title="' + O(t) + '"'), s += ">" + r + "</a>", s;
|
|
6339
6371
|
}
|
|
6340
6372
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
6341
6373
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
6342
6374
|
let i = X(e);
|
|
6343
|
-
if (i === null) return
|
|
6375
|
+
if (i === null) return O(n);
|
|
6344
6376
|
e = i;
|
|
6345
|
-
let s = `<img src="${e}" alt="${n}"`;
|
|
6346
|
-
return t && (s += ` title="${
|
|
6377
|
+
let s = `<img src="${e}" alt="${O(n)}"`;
|
|
6378
|
+
return t && (s += ` title="${O(t)}"`), s += ">", s;
|
|
6347
6379
|
}
|
|
6348
6380
|
text(e) {
|
|
6349
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text :
|
|
6381
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : O(e.text);
|
|
6350
6382
|
}
|
|
6351
6383
|
constructor(e){
|
|
6352
6384
|
_define_property(this, "options", void 0);
|
|
@@ -6585,10 +6617,10 @@ var b = class u {
|
|
|
6585
6617
|
_define_property(this, "options", void 0);
|
|
6586
6618
|
_define_property(this, "renderer", void 0);
|
|
6587
6619
|
_define_property(this, "textRenderer", void 0);
|
|
6588
|
-
this.options = e || T, this.options.renderer = this.options.renderer || new
|
|
6620
|
+
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 $;
|
|
6589
6621
|
}
|
|
6590
6622
|
};
|
|
6591
|
-
var
|
|
6623
|
+
var P = (_class = class {
|
|
6592
6624
|
preprocess(e) {
|
|
6593
6625
|
return e;
|
|
6594
6626
|
}
|
|
@@ -6681,7 +6713,7 @@ var B = class {
|
|
|
6681
6713
|
}
|
|
6682
6714
|
"childTokens" in i && i.childTokens && (t.childTokens[i.name] = i.childTokens);
|
|
6683
6715
|
}), r.extensions = t), n.renderer) {
|
|
6684
|
-
let i = this.defaults.renderer || new
|
|
6716
|
+
let i = this.defaults.renderer || new y(this.defaults);
|
|
6685
6717
|
for(let s in n.renderer){
|
|
6686
6718
|
if (!(s in i)) throw new Error(`renderer '${s}' does not exist`);
|
|
6687
6719
|
if ([
|
|
@@ -6697,7 +6729,7 @@ var B = class {
|
|
|
6697
6729
|
r.renderer = i;
|
|
6698
6730
|
}
|
|
6699
6731
|
if (n.tokenizer) {
|
|
6700
|
-
let i = this.defaults.tokenizer || new
|
|
6732
|
+
let i = this.defaults.tokenizer || new w(this.defaults);
|
|
6701
6733
|
for(let s in n.tokenizer){
|
|
6702
6734
|
if (!(s in i)) throw new Error(`tokenizer '${s}' does not exist`);
|
|
6703
6735
|
if ([
|
|
@@ -6714,7 +6746,7 @@ var B = class {
|
|
|
6714
6746
|
r.tokenizer = i;
|
|
6715
6747
|
}
|
|
6716
6748
|
if (n.hooks) {
|
|
6717
|
-
let i = this.defaults.hooks || new
|
|
6749
|
+
let i = this.defaults.hooks || new P;
|
|
6718
6750
|
for(let s in n.hooks){
|
|
6719
6751
|
if (!(s in i)) throw new Error(`hook '${s}' does not exist`);
|
|
6720
6752
|
if ([
|
|
@@ -6722,17 +6754,17 @@ var B = class {
|
|
|
6722
6754
|
"block"
|
|
6723
6755
|
].includes(s)) continue;
|
|
6724
6756
|
let a = s, o = n.hooks[a], l = i[a];
|
|
6725
|
-
|
|
6726
|
-
if (this.defaults.async &&
|
|
6727
|
-
let
|
|
6728
|
-
return l.call(i,
|
|
6757
|
+
P.passThroughHooks.has(s) ? i[a] = (p)=>{
|
|
6758
|
+
if (this.defaults.async && P.passThroughHooksRespectAsync.has(s)) return (async ()=>{
|
|
6759
|
+
let d = await o.call(i, p);
|
|
6760
|
+
return l.call(i, d);
|
|
6729
6761
|
})();
|
|
6730
6762
|
let c = o.call(i, p);
|
|
6731
6763
|
return l.call(i, c);
|
|
6732
6764
|
} : i[a] = (...p)=>{
|
|
6733
6765
|
if (this.defaults.async) return (async ()=>{
|
|
6734
|
-
let
|
|
6735
|
-
return
|
|
6766
|
+
let d = await o.apply(i, p);
|
|
6767
|
+
return d === !1 && (d = await l.apply(i, p)), d;
|
|
6736
6768
|
})();
|
|
6737
6769
|
let c = o.apply(i, p);
|
|
6738
6770
|
return c === !1 && (c = l.apply(i, p)), c;
|
|
@@ -6797,7 +6829,7 @@ var B = class {
|
|
|
6797
6829
|
return (n)=>{
|
|
6798
6830
|
if (n.message += `
|
|
6799
6831
|
Please report this to https://github.com/markedjs/marked.`, e) {
|
|
6800
|
-
let r = "<p>An error occurred:</p><pre>" +
|
|
6832
|
+
let r = "<p>An error occurred:</p><pre>" + O(n.message + "", !0) + "</pre>";
|
|
6801
6833
|
return t ? Promise.resolve(r) : r;
|
|
6802
6834
|
}
|
|
6803
6835
|
if (t) return Promise.reject(n);
|
|
@@ -6805,45 +6837,45 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
6805
6837
|
};
|
|
6806
6838
|
}
|
|
6807
6839
|
constructor(...e){
|
|
6808
|
-
_define_property(this, "defaults",
|
|
6840
|
+
_define_property(this, "defaults", M());
|
|
6809
6841
|
_define_property(this, "options", this.setOptions);
|
|
6810
6842
|
_define_property(this, "parse", this.parseMarkdown(!0));
|
|
6811
6843
|
_define_property(this, "parseInline", this.parseMarkdown(!1));
|
|
6812
6844
|
_define_property(this, "Parser", b);
|
|
6813
|
-
_define_property(this, "Renderer",
|
|
6845
|
+
_define_property(this, "Renderer", y);
|
|
6814
6846
|
_define_property(this, "TextRenderer", $);
|
|
6815
6847
|
_define_property(this, "Lexer", x);
|
|
6816
|
-
_define_property(this, "Tokenizer",
|
|
6817
|
-
_define_property(this, "Hooks",
|
|
6848
|
+
_define_property(this, "Tokenizer", w);
|
|
6849
|
+
_define_property(this, "Hooks", P);
|
|
6818
6850
|
this.use(...e);
|
|
6819
6851
|
}
|
|
6820
6852
|
};
|
|
6821
|
-
var
|
|
6822
|
-
function
|
|
6823
|
-
return
|
|
6853
|
+
var L = new B;
|
|
6854
|
+
function g(u, e) {
|
|
6855
|
+
return L.parse(u, e);
|
|
6824
6856
|
}
|
|
6825
|
-
|
|
6826
|
-
return
|
|
6857
|
+
g.options = g.setOptions = function(u) {
|
|
6858
|
+
return L.setOptions(u), g.defaults = L.defaults, H(g.defaults), g;
|
|
6827
6859
|
};
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
return
|
|
6860
|
+
g.getDefaults = M;
|
|
6861
|
+
g.defaults = T;
|
|
6862
|
+
g.use = function(...u) {
|
|
6863
|
+
return L.use(...u), g.defaults = L.defaults, H(g.defaults), g;
|
|
6832
6864
|
};
|
|
6833
|
-
|
|
6834
|
-
return
|
|
6865
|
+
g.walkTokens = function(u, e) {
|
|
6866
|
+
return L.walkTokens(u, e);
|
|
6835
6867
|
};
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
var
|
|
6868
|
+
g.parseInline = L.parseInline;
|
|
6869
|
+
g.Parser = b;
|
|
6870
|
+
g.parser = b.parse;
|
|
6871
|
+
g.Renderer = y;
|
|
6872
|
+
g.TextRenderer = $;
|
|
6873
|
+
g.Lexer = x;
|
|
6874
|
+
g.lexer = x.lex;
|
|
6875
|
+
g.Tokenizer = w;
|
|
6876
|
+
g.Hooks = P;
|
|
6877
|
+
g.parse = g;
|
|
6878
|
+
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;
|
|
6847
6879
|
//# sourceMappingURL=marked.esm.js.map
|
|
6848
6880
|
|
|
6849
6881
|
|