jodit-pro 4.13.38 → 4.13.44
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/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +28 -28
- package/es2015/jodit.js +83 -190
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +306 -168
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +29 -29
- package/es2015/plugins/autocomplete/autocomplete.css +1 -1
- 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.css +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 +241 -72
- package/es2015/plugins/google-maps/google-maps.min.js +4 -4
- 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/image-editor-pro/image-editor-pro.css +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.js +6 -12
- package/es2015/plugins/image-editor-pro/image-editor-pro.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/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.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.css +1 -1
- package/es2018/jodit.fat.min.js +19 -19
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +15 -15
- 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.css +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +7 -7
- 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/image-editor-pro/image-editor-pro.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/templates/templates.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.css +1 -1
- package/es2021/jodit.fat.min.js +19 -19
- package/es2021/jodit.js +2 -2
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +204 -162
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +15 -15
- package/es2021/plugins/autocomplete/autocomplete.css +1 -1
- 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.css +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 +236 -75
- package/es2021/plugins/google-maps/google-maps.min.js +9 -9
- 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/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.js +2 -4
- package/es2021/plugins/image-editor-pro/image-editor-pro.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/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +1 -1
- package/es2021/plugins/templates/templates.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.css +1 -1
- package/es2021.en/jodit.fat.min.js +19 -19
- package/es2021.en/jodit.js +2 -2
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +204 -162
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +15 -15
- package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
- 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.css +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 +236 -75
- package/es2021.en/plugins/google-maps/google-maps.min.js +9 -9
- 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/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +2 -4
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.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/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.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.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +1788 -2701
- package/es5/jodit.min.css +3 -3
- 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 +406 -275
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.css +1 -1
- 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 +9 -9
- package/es5/plugins/backup/backup.min.js +2 -2
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +11 -18
- package/es5/plugins/button-generator/button-generator.min.js +2 -2
- 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 +10 -17
- package/es5/plugins/color-picker/color-picker.min.js +2 -2
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +7 -7
- package/es5/plugins/emoji/emoji.min.js +2 -2
- package/es5/plugins/export-docs/export-docs.js +11 -11
- package/es5/plugins/export-docs/export-docs.min.js +2 -2
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +4 -10
- package/es5/plugins/finder/finder.min.css +1 -1
- package/es5/plugins/finder/finder.min.js +2 -2
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +334 -114
- package/es5/plugins/google-maps/google-maps.min.js +2 -2
- 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 +6 -6
- package/es5/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +6 -6
- package/es5/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.js +29 -42
- package/es5/plugins/image-editor-pro/image-editor-pro.min.js +2 -2
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +6 -6
- package/es5/plugins/keyboard/keyboard.min.js +2 -2
- package/es5/plugins/mobile-view/mobile-view.js +6 -6
- package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es5/plugins/page-break/page-break.js +6 -6
- package/es5/plugins/page-break/page-break.min.js +2 -2
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +13 -13
- package/es5/plugins/paste-code/paste-code.min.js +2 -2
- 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 +8 -8
- package/es5/plugins/show-blocks/show-blocks.min.js +2 -2
- 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/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +1 -1
- package/es5/plugins/templates/templates.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +18 -18
- package/es5/plugins/todo-list/todo-list.min.js +2 -2
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +7 -7
- package/es5/plugins/translate/translate.min.js +2 -2
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +7 -7
- package/es5/plugins/tune-block/tune-block.min.js +2 -2
- package/es5/polyfills.fat.min.js +2 -2
- package/es5/polyfills.js +225 -105
- package/es5/polyfills.min.js +2 -2
- package/esm/plugins/ai-assistant-pro/core/sanitize-utils.d.ts +18 -0
- package/esm/plugins/ai-assistant-pro/core/sanitize-utils.js +1 -0
- package/esm/plugins/ai-assistant-pro/tools/add-html/executor.js +1 -1
- package/esm/plugins/ai-assistant-pro/tools/replace-block/executor.js +1 -1
- package/esm/plugins/ai-assistant-pro/tools/replace-in-document/executor.js +1 -1
- package/esm/plugins/google-maps/config.js +1 -1
- package/esm/plugins/google-maps/ui/map/map.d.ts +3 -2
- package/esm/plugins/google-maps/ui/map/map.js +2 -2
- package/esm/plugins/google-maps/ui/map/modules/drawing-controller.d.ts +42 -0
- package/esm/plugins/google-maps/ui/map/modules/drawing-controller.js +1 -0
- package/package.json +1 -1
- package/types/plugins/ai-assistant-pro/core/sanitize-utils.d.ts +18 -0
- package/types/plugins/google-maps/ui/map/map.d.ts +3 -2
- package/types/plugins/google-maps/ui/map/modules/drawing-controller.d.ts +42 -0
|
@@ -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.13.
|
|
4
|
+
* Version: v4.13.44
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -2072,6 +2072,39 @@ const TERMINAL_STATUSES = new Set([
|
|
|
2072
2072
|
}
|
|
2073
2073
|
|
|
2074
2074
|
|
|
2075
|
+
/***/ }),
|
|
2076
|
+
|
|
2077
|
+
/***/ 85696:
|
|
2078
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
2079
|
+
|
|
2080
|
+
"use strict";
|
|
2081
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2082
|
+
/* harmony export */ createSanitizedContainer: function() { return /* binding */ createSanitizedContainer; },
|
|
2083
|
+
/* harmony export */ sanitizeElement: function() { return /* binding */ sanitizeElement; }
|
|
2084
|
+
/* harmony export */ });
|
|
2085
|
+
/*!
|
|
2086
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
2087
|
+
* See LICENSE.md in the project root for license information.
|
|
2088
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
2089
|
+
*/ /**
|
|
2090
|
+
* Parse an HTML string into a detached container passed through the
|
|
2091
|
+
* editor's synchronous `safeHTML` pipeline — the same contract
|
|
2092
|
+
* `Selection.insertNode` uses — so model-produced markup is sanitized
|
|
2093
|
+
* before it ever reaches the editor DOM.
|
|
2094
|
+
*/ function createSanitizedContainer(jodit, html) {
|
|
2095
|
+
const container = jodit.createInside.div();
|
|
2096
|
+
container.innerHTML = html;
|
|
2097
|
+
sanitizeElement(jodit, container);
|
|
2098
|
+
return container;
|
|
2099
|
+
}
|
|
2100
|
+
/**
|
|
2101
|
+
* Run the editor's synchronous `safeHTML` pipeline over a live element
|
|
2102
|
+
* whose content was modified directly (bypassing `Selection.insertNode`).
|
|
2103
|
+
*/ function sanitizeElement(jodit, element) {
|
|
2104
|
+
jodit.e.fire('safeHTML', element);
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
|
|
2075
2108
|
/***/ }),
|
|
2076
2109
|
|
|
2077
2110
|
/***/ 15927:
|
|
@@ -3930,7 +3963,8 @@ const requiresPermission = true;
|
|
|
3930
3963
|
/* harmony export */ });
|
|
3931
3964
|
/* harmony import */ var _core_abort_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
|
|
3932
3965
|
/* harmony import */ var _core_arg_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49459);
|
|
3933
|
-
/* harmony import */ var
|
|
3966
|
+
/* harmony import */ var _core_sanitize_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85696);
|
|
3967
|
+
/* harmony import */ var jodit_esm_core_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22732);
|
|
3934
3968
|
/*!
|
|
3935
3969
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3936
3970
|
* See LICENSE.md in the project root for license information.
|
|
@@ -3938,6 +3972,7 @@ const requiresPermission = true;
|
|
|
3938
3972
|
*/
|
|
3939
3973
|
|
|
3940
3974
|
|
|
3975
|
+
|
|
3941
3976
|
/**
|
|
3942
3977
|
* Add HTML content to the beginning or end of the document
|
|
3943
3978
|
*/ async function execute(jodit, args, signal) {
|
|
@@ -3954,15 +3989,14 @@ const requiresPermission = true;
|
|
|
3954
3989
|
(0,_core_abort_utils__WEBPACK_IMPORTED_MODULE_0__.throwIfAborted)(signal);
|
|
3955
3990
|
try {
|
|
3956
3991
|
const fragment = jodit.createInside.fragment();
|
|
3957
|
-
const tmp =
|
|
3958
|
-
tmp.innerHTML = html;
|
|
3992
|
+
const tmp = (0,_core_sanitize_utils__WEBPACK_IMPORTED_MODULE_2__.createSanitizedContainer)(jodit, html);
|
|
3959
3993
|
while(tmp.firstChild){
|
|
3960
3994
|
fragment.appendChild(tmp.firstChild);
|
|
3961
3995
|
}
|
|
3962
3996
|
if (position === 'start') {
|
|
3963
|
-
|
|
3997
|
+
jodit_esm_core_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.prepend(jodit.editor, fragment);
|
|
3964
3998
|
} else {
|
|
3965
|
-
|
|
3999
|
+
jodit_esm_core_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.append(jodit.editor, fragment);
|
|
3966
4000
|
}
|
|
3967
4001
|
jodit.synchronizeValues();
|
|
3968
4002
|
return {
|
|
@@ -4721,7 +4755,8 @@ const requiresPermission = true;
|
|
|
4721
4755
|
/* harmony import */ var _core_abort_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
|
|
4722
4756
|
/* harmony import */ var _core_arg_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49459);
|
|
4723
4757
|
/* harmony import */ var _core_block_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(44526);
|
|
4724
|
-
/* harmony import */ var
|
|
4758
|
+
/* harmony import */ var _core_sanitize_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(85696);
|
|
4759
|
+
/* harmony import */ var jodit_esm_core_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22732);
|
|
4725
4760
|
/*!
|
|
4726
4761
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4727
4762
|
* See LICENSE.md in the project root for license information.
|
|
@@ -4730,6 +4765,7 @@ const requiresPermission = true;
|
|
|
4730
4765
|
|
|
4731
4766
|
|
|
4732
4767
|
|
|
4768
|
+
|
|
4733
4769
|
/**
|
|
4734
4770
|
* Replace a specific block in the document by its index or CSS selector
|
|
4735
4771
|
*/ async function execute(jodit, args, signal) {
|
|
@@ -4747,10 +4783,9 @@ const requiresPermission = true;
|
|
|
4747
4783
|
});
|
|
4748
4784
|
try {
|
|
4749
4785
|
// Create new element from HTML
|
|
4750
|
-
const tempDiv =
|
|
4751
|
-
tempDiv.innerHTML = html;
|
|
4786
|
+
const tempDiv = (0,_core_sanitize_utils__WEBPACK_IMPORTED_MODULE_3__.createSanitizedContainer)(jodit, html);
|
|
4752
4787
|
const newBlock = tempDiv.firstChild;
|
|
4753
|
-
if (!newBlock || !
|
|
4788
|
+
if (!newBlock || !jodit_esm_core_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isElement(newBlock)) {
|
|
4754
4789
|
throw new Error('Invalid HTML: must contain at least one element');
|
|
4755
4790
|
}
|
|
4756
4791
|
// Replace the block
|
|
@@ -4846,12 +4881,14 @@ const requiresPermission = true;
|
|
|
4846
4881
|
/* harmony export */ });
|
|
4847
4882
|
/* harmony import */ var _core_abort_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
|
|
4848
4883
|
/* harmony import */ var _core_arg_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49459);
|
|
4884
|
+
/* harmony import */ var _core_sanitize_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85696);
|
|
4849
4885
|
/*!
|
|
4850
4886
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4851
4887
|
* See LICENSE.md in the project root for license information.
|
|
4852
4888
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4853
4889
|
*/
|
|
4854
4890
|
|
|
4891
|
+
|
|
4855
4892
|
function replaceInSelectedElements(jodit, search, replace, useRegex, useSelector, signal) {
|
|
4856
4893
|
const elements = jodit.editor.querySelectorAll(useSelector);
|
|
4857
4894
|
if (elements.length === 0) {
|
|
@@ -4887,6 +4924,7 @@ function replaceInSelectedElements(jodit, search, replace, useRegex, useSelector
|
|
|
4887
4924
|
}
|
|
4888
4925
|
if (elementContent !== originalContent) {
|
|
4889
4926
|
element.innerHTML = elementContent;
|
|
4927
|
+
(0,_core_sanitize_utils__WEBPACK_IMPORTED_MODULE_2__.sanitizeElement)(jodit, element);
|
|
4890
4928
|
}
|
|
4891
4929
|
});
|
|
4892
4930
|
if (replacements > 0) {
|
|
@@ -8343,14 +8381,12 @@ function _define_property(obj, key, value) {
|
|
|
8343
8381
|
configurable: true,
|
|
8344
8382
|
writable: true
|
|
8345
8383
|
});
|
|
8346
|
-
} else
|
|
8347
|
-
obj[key] = value;
|
|
8348
|
-
}
|
|
8384
|
+
} else obj[key] = value;
|
|
8349
8385
|
return obj;
|
|
8350
8386
|
}
|
|
8351
8387
|
var _class;
|
|
8352
8388
|
/**
|
|
8353
|
-
* marked v17.0.
|
|
8389
|
+
* marked v17.0.6 - a markdown parser
|
|
8354
8390
|
* Copyright (c) 2018-2026, MarkedJS. (MIT License)
|
|
8355
8391
|
* Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License)
|
|
8356
8392
|
* https://github.com/markedjs/marked
|
|
@@ -8371,9 +8407,9 @@ var _class;
|
|
|
8371
8407
|
walkTokens: null
|
|
8372
8408
|
};
|
|
8373
8409
|
}
|
|
8374
|
-
var
|
|
8410
|
+
var O = M();
|
|
8375
8411
|
function G(u) {
|
|
8376
|
-
|
|
8412
|
+
O = u;
|
|
8377
8413
|
}
|
|
8378
8414
|
var _ = {
|
|
8379
8415
|
exec: ()=>null
|
|
@@ -8388,7 +8424,7 @@ function k(u, e = "") {
|
|
|
8388
8424
|
};
|
|
8389
8425
|
return n;
|
|
8390
8426
|
}
|
|
8391
|
-
var
|
|
8427
|
+
var be = (()=>{
|
|
8392
8428
|
try {
|
|
8393
8429
|
return !!new RegExp("(?<=1)(?<!1)");
|
|
8394
8430
|
} catch {
|
|
@@ -8451,98 +8487,98 @@ var Re = (()=>{
|
|
|
8451
8487
|
headingBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}#`),
|
|
8452
8488
|
htmlBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}<(?:[a-z].*>|!--)`, "i"),
|
|
8453
8489
|
blockquoteBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}>`)
|
|
8454
|
-
},
|
|
8455
|
-
blockquote:
|
|
8490
|
+
}, Re = /^(?:[ \t]*(?:\n|$))+/, Oe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Te = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, C = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, we = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Q = / {0,3}(?:[*+-]|\d{1,9}[.)])/, se = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ie = k(se).replace(/bull/g, Q).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(), ye = k(se).replace(/bull/g, Q).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(), j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Pe = /^[^\n]+/, F = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Se = 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, Q).getRegex(), v = "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", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, _e = 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", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), oe = k(j).replace("hr", C).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", v).getRegex(), Le = k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", oe).getRegex(), K = {
|
|
8491
|
+
blockquote: Le,
|
|
8456
8492
|
code: Oe,
|
|
8457
|
-
def:
|
|
8458
|
-
fences:
|
|
8459
|
-
heading:
|
|
8460
|
-
hr:
|
|
8461
|
-
html:
|
|
8462
|
-
lheading:
|
|
8463
|
-
list:
|
|
8464
|
-
newline:
|
|
8465
|
-
paragraph:
|
|
8493
|
+
def: Se,
|
|
8494
|
+
fences: Te,
|
|
8495
|
+
heading: we,
|
|
8496
|
+
hr: C,
|
|
8497
|
+
html: _e,
|
|
8498
|
+
lheading: ie,
|
|
8499
|
+
list: $e,
|
|
8500
|
+
newline: Re,
|
|
8501
|
+
paragraph: oe,
|
|
8466
8502
|
table: _,
|
|
8467
|
-
text:
|
|
8468
|
-
},
|
|
8469
|
-
...
|
|
8470
|
-
lheading:
|
|
8471
|
-
table:
|
|
8472
|
-
paragraph: k(
|
|
8473
|
-
},
|
|
8474
|
-
...
|
|
8475
|
-
html: k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",
|
|
8503
|
+
text: Pe
|
|
8504
|
+
}, ne = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", C).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", v).getRegex(), Me = {
|
|
8505
|
+
...K,
|
|
8506
|
+
lheading: ye,
|
|
8507
|
+
table: ne,
|
|
8508
|
+
paragraph: k(j).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ne).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", v).getRegex()
|
|
8509
|
+
}, ze = {
|
|
8510
|
+
...K,
|
|
8511
|
+
html: k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).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(),
|
|
8476
8512
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
8477
8513
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
8478
8514
|
fences: _,
|
|
8479
8515
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
8480
|
-
paragraph: k(
|
|
8481
|
-
]`).replace("lheading",
|
|
8482
|
-
},
|
|
8516
|
+
paragraph: k(j).replace("hr", C).replace("heading", ` *#{1,6} *[^
|
|
8517
|
+
]`).replace("lheading", ie).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
8518
|
+
}, Ee = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ie = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ae = /^( {2,}|\\)\n(?!\s*$)/, Ae = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, z = /[\p{P}\p{S}]/u, H = /[\s\p{P}\p{S}]/u, W = /[^\s\p{P}\p{S}]/u, Ce = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, H).getRegex(), le = /(?!~)[\p{P}\p{S}]/u, Be = /(?!~)[\s\p{P}\p{S}]/u, De = /(?:[^\s\p{P}\p{S}]|~)/u, qe = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", be ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ue = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, ve = k(ue, "u").replace(/punct/g, z).getRegex(), He = k(ue, "u").replace(/punct/g, le).getRegex(), pe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ze = k(pe, "gu").replace(/notPunctSpace/g, W).replace(/punctSpace/g, H).replace(/punct/g, z).getRegex(), Ge = k(pe, "gu").replace(/notPunctSpace/g, De).replace(/punctSpace/g, Be).replace(/punct/g, le).getRegex(), Ne = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, W).replace(/punctSpace/g, H).replace(/punct/g, z).getRegex(), Qe = k(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, z).getRegex(), je = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", Fe = k(je, "gu").replace(/notPunctSpace/g, W).replace(/punctSpace/g, H).replace(/punct/g, z).getRegex(), Ue = k(/\\(punct)/, "gu").replace(/punct/g, z).getRegex(), Ke = 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(), We = k(U).replace("(?:-->|$)", "-->").getRegex(), Xe = 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", We).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, Je = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ce = k(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", F).getRegex(), he = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", F).getRegex(), Ve = k("reflink|nolink(?!\\()", "g").replace("reflink", ce).replace("nolink", he).getRegex(), re = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, X = {
|
|
8483
8519
|
_backpedal: _,
|
|
8484
|
-
anyPunctuation:
|
|
8485
|
-
autolink:
|
|
8486
|
-
blockSkip:
|
|
8487
|
-
br:
|
|
8488
|
-
code:
|
|
8520
|
+
anyPunctuation: Ue,
|
|
8521
|
+
autolink: Ke,
|
|
8522
|
+
blockSkip: qe,
|
|
8523
|
+
br: ae,
|
|
8524
|
+
code: Ie,
|
|
8489
8525
|
del: _,
|
|
8490
8526
|
delLDelim: _,
|
|
8491
8527
|
delRDelim: _,
|
|
8492
|
-
emStrongLDelim:
|
|
8493
|
-
emStrongRDelimAst:
|
|
8494
|
-
emStrongRDelimUnd:
|
|
8495
|
-
escape:
|
|
8496
|
-
link:
|
|
8497
|
-
nolink:
|
|
8498
|
-
punctuation:
|
|
8499
|
-
reflink:
|
|
8500
|
-
reflinkSearch:
|
|
8501
|
-
tag:
|
|
8502
|
-
text:
|
|
8528
|
+
emStrongLDelim: ve,
|
|
8529
|
+
emStrongRDelimAst: Ze,
|
|
8530
|
+
emStrongRDelimUnd: Ne,
|
|
8531
|
+
escape: Ee,
|
|
8532
|
+
link: Je,
|
|
8533
|
+
nolink: he,
|
|
8534
|
+
punctuation: Ce,
|
|
8535
|
+
reflink: ce,
|
|
8536
|
+
reflinkSearch: Ve,
|
|
8537
|
+
tag: Xe,
|
|
8538
|
+
text: Ae,
|
|
8503
8539
|
url: _
|
|
8504
|
-
},
|
|
8505
|
-
...
|
|
8506
|
-
link: k(/^!?\[(label)\]\((.*?)\)/).replace("label",
|
|
8507
|
-
reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",
|
|
8508
|
-
},
|
|
8509
|
-
...
|
|
8510
|
-
emStrongRDelimAst:
|
|
8511
|
-
emStrongLDelim:
|
|
8512
|
-
delLDelim:
|
|
8513
|
-
delRDelim:
|
|
8514
|
-
url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",
|
|
8540
|
+
}, Ye = {
|
|
8541
|
+
...X,
|
|
8542
|
+
link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(),
|
|
8543
|
+
reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex()
|
|
8544
|
+
}, N = {
|
|
8545
|
+
...X,
|
|
8546
|
+
emStrongRDelimAst: Ge,
|
|
8547
|
+
emStrongLDelim: He,
|
|
8548
|
+
delLDelim: Qe,
|
|
8549
|
+
delRDelim: Fe,
|
|
8550
|
+
url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", re).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
8515
8551
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
8516
8552
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
8517
|
-
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",
|
|
8518
|
-
},
|
|
8519
|
-
...
|
|
8520
|
-
br: k(
|
|
8521
|
-
text: k(
|
|
8522
|
-
},
|
|
8523
|
-
normal:
|
|
8524
|
-
gfm:
|
|
8525
|
-
pedantic:
|
|
8526
|
-
},
|
|
8527
|
-
normal:
|
|
8528
|
-
gfm:
|
|
8529
|
-
breaks:
|
|
8530
|
-
pedantic:
|
|
8553
|
+
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", re).getRegex()
|
|
8554
|
+
}, et = {
|
|
8555
|
+
...N,
|
|
8556
|
+
br: k(ae).replace("{2,}", "*").getRegex(),
|
|
8557
|
+
text: k(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
8558
|
+
}, B = {
|
|
8559
|
+
normal: K,
|
|
8560
|
+
gfm: Me,
|
|
8561
|
+
pedantic: ze
|
|
8562
|
+
}, E = {
|
|
8563
|
+
normal: X,
|
|
8564
|
+
gfm: N,
|
|
8565
|
+
breaks: et,
|
|
8566
|
+
pedantic: Ye
|
|
8531
8567
|
};
|
|
8532
|
-
var
|
|
8568
|
+
var tt = {
|
|
8533
8569
|
"&": "&",
|
|
8534
8570
|
"<": "<",
|
|
8535
8571
|
">": ">",
|
|
8536
8572
|
'"': """,
|
|
8537
8573
|
"'": "'"
|
|
8538
|
-
},
|
|
8539
|
-
function
|
|
8574
|
+
}, ke = (u)=>tt[u];
|
|
8575
|
+
function T(u, e) {
|
|
8540
8576
|
if (e) {
|
|
8541
|
-
if (m.escapeTest.test(u)) return u.replace(m.escapeReplace,
|
|
8542
|
-
} else if (m.escapeTestNoEncode.test(u)) return u.replace(m.escapeReplaceNoEncode,
|
|
8577
|
+
if (m.escapeTest.test(u)) return u.replace(m.escapeReplace, ke);
|
|
8578
|
+
} else if (m.escapeTestNoEncode.test(u)) return u.replace(m.escapeReplaceNoEncode, ke);
|
|
8543
8579
|
return u;
|
|
8544
8580
|
}
|
|
8545
|
-
function
|
|
8581
|
+
function J(u) {
|
|
8546
8582
|
try {
|
|
8547
8583
|
u = encodeURI(u).replace(m.percentDecode, "%");
|
|
8548
8584
|
} catch {
|
|
@@ -8550,7 +8586,7 @@ function X(u) {
|
|
|
8550
8586
|
}
|
|
8551
8587
|
return u;
|
|
8552
8588
|
}
|
|
8553
|
-
function
|
|
8589
|
+
function V(u, e) {
|
|
8554
8590
|
let t = u.replace(m.findPipe, (i, s, a)=>{
|
|
8555
8591
|
let o = !1, l = s;
|
|
8556
8592
|
for(; --l >= 0 && a[l] === "\\";)o = !o;
|
|
@@ -8561,7 +8597,7 @@ function J(u, e) {
|
|
|
8561
8597
|
for(; r < n.length; r++)n[r] = n[r].trim().replace(m.slashPipe, "|");
|
|
8562
8598
|
return n;
|
|
8563
8599
|
}
|
|
8564
|
-
function
|
|
8600
|
+
function I(u, e, t) {
|
|
8565
8601
|
let n = u.length;
|
|
8566
8602
|
if (n === 0) return "";
|
|
8567
8603
|
let r = 0;
|
|
@@ -8573,7 +8609,7 @@ function E(u, e, t) {
|
|
|
8573
8609
|
}
|
|
8574
8610
|
return u.slice(0, n - r);
|
|
8575
8611
|
}
|
|
8576
|
-
function
|
|
8612
|
+
function de(u, e) {
|
|
8577
8613
|
if (u.indexOf(e[1]) === -1) return -1;
|
|
8578
8614
|
let t = 0;
|
|
8579
8615
|
for(let n = 0; n < u.length; n++)if (u[n] === "\\") n++;
|
|
@@ -8581,7 +8617,7 @@ function ge(u, e) {
|
|
|
8581
8617
|
else if (u[n] === e[1] && (t--, t < 0)) return n;
|
|
8582
8618
|
return t > 0 ? -2 : -1;
|
|
8583
8619
|
}
|
|
8584
|
-
function
|
|
8620
|
+
function ge(u, e = 0) {
|
|
8585
8621
|
let t = e, n = "";
|
|
8586
8622
|
for (let r of u)if (r === " ") {
|
|
8587
8623
|
let i = 4 - t % 4;
|
|
@@ -8589,7 +8625,7 @@ function fe(u, e = 0) {
|
|
|
8589
8625
|
} else n += r, t++;
|
|
8590
8626
|
return n;
|
|
8591
8627
|
}
|
|
8592
|
-
function
|
|
8628
|
+
function fe(u, e, t, n, r) {
|
|
8593
8629
|
let i = e.href, s = e.title || null, a = u[1].replace(r.other.outputLinkReplace, "$1");
|
|
8594
8630
|
n.state.inLink = !0;
|
|
8595
8631
|
let o = {
|
|
@@ -8602,7 +8638,7 @@ function me(u, e, t, n, r) {
|
|
|
8602
8638
|
};
|
|
8603
8639
|
return n.state.inLink = !1, o;
|
|
8604
8640
|
}
|
|
8605
|
-
function
|
|
8641
|
+
function nt(u, e, t) {
|
|
8606
8642
|
let n = u.match(t.other.indentCodeCompensation);
|
|
8607
8643
|
if (n === null) return e;
|
|
8608
8644
|
let r = n[1];
|
|
@@ -8631,7 +8667,7 @@ var w = class {
|
|
|
8631
8667
|
type: "code",
|
|
8632
8668
|
raw: t[0],
|
|
8633
8669
|
codeBlockStyle: "indented",
|
|
8634
|
-
text: this.options.pedantic ? n :
|
|
8670
|
+
text: this.options.pedantic ? n : I(n, `
|
|
8635
8671
|
`)
|
|
8636
8672
|
};
|
|
8637
8673
|
}
|
|
@@ -8639,7 +8675,7 @@ var w = class {
|
|
|
8639
8675
|
fences(e) {
|
|
8640
8676
|
let t = this.rules.block.fences.exec(e);
|
|
8641
8677
|
if (t) {
|
|
8642
|
-
let n = t[0], r =
|
|
8678
|
+
let n = t[0], r = nt(n, t[3] || "", this.rules);
|
|
8643
8679
|
return {
|
|
8644
8680
|
type: "code",
|
|
8645
8681
|
raw: n,
|
|
@@ -8653,7 +8689,7 @@ var w = class {
|
|
|
8653
8689
|
if (t) {
|
|
8654
8690
|
let n = t[2].trim();
|
|
8655
8691
|
if (this.rules.other.endingHash.test(n)) {
|
|
8656
|
-
let r =
|
|
8692
|
+
let r = I(n, "#");
|
|
8657
8693
|
(this.options.pedantic || !r || this.rules.other.endingSpaceChar.test(r)) && (n = r.trim());
|
|
8658
8694
|
}
|
|
8659
8695
|
return {
|
|
@@ -8669,14 +8705,14 @@ var w = class {
|
|
|
8669
8705
|
let t = this.rules.block.hr.exec(e);
|
|
8670
8706
|
if (t) return {
|
|
8671
8707
|
type: "hr",
|
|
8672
|
-
raw:
|
|
8708
|
+
raw: I(t[0], `
|
|
8673
8709
|
`)
|
|
8674
8710
|
};
|
|
8675
8711
|
}
|
|
8676
8712
|
blockquote(e) {
|
|
8677
8713
|
let t = this.rules.block.blockquote.exec(e);
|
|
8678
8714
|
if (t) {
|
|
8679
|
-
let n =
|
|
8715
|
+
let n = I(t[0], `
|
|
8680
8716
|
`).split(`
|
|
8681
8717
|
`), r = "", i = "", s = [];
|
|
8682
8718
|
for(; n.length > 0;){
|
|
@@ -8735,25 +8771,25 @@ ${c}` : c;
|
|
|
8735
8771
|
let l = !1, p = "", c = "";
|
|
8736
8772
|
if (!(t = s.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
8737
8773
|
p = t[0], e = e.substring(p.length);
|
|
8738
|
-
let d =
|
|
8774
|
+
let d = ge(t[2].split(`
|
|
8739
8775
|
`, 1)[0], t[1].length), h = e.split(`
|
|
8740
8776
|
`, 1)[0], R = !d.trim(), f = 0;
|
|
8741
8777
|
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 + `
|
|
8742
8778
|
`, e = e.substring(h.length + 1), l = !0), !l) {
|
|
8743
|
-
let S = this.rules.other.nextBulletRegex(f),
|
|
8779
|
+
let S = this.rules.other.nextBulletRegex(f), Y = this.rules.other.hrRegex(f), ee = this.rules.other.fencesBeginRegex(f), te = this.rules.other.headingBeginRegex(f), me = this.rules.other.htmlBeginRegex(f), xe = this.rules.other.blockquoteBeginRegex(f);
|
|
8744
8780
|
for(; e;){
|
|
8745
|
-
let
|
|
8746
|
-
`, 1)[0],
|
|
8747
|
-
if (h =
|
|
8748
|
-
if (
|
|
8749
|
-
` +
|
|
8781
|
+
let Z = e.split(`
|
|
8782
|
+
`, 1)[0], A;
|
|
8783
|
+
if (h = Z, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), A = h) : A = h.replace(this.rules.other.tabCharGlobal, " "), ee.test(h) || te.test(h) || me.test(h) || xe.test(h) || S.test(h) || Y.test(h)) break;
|
|
8784
|
+
if (A.search(this.rules.other.nonSpaceChar) >= f || !h.trim()) c += `
|
|
8785
|
+
` + A.slice(f);
|
|
8750
8786
|
else {
|
|
8751
|
-
if (R || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 ||
|
|
8787
|
+
if (R || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || ee.test(d) || te.test(d) || Y.test(d)) break;
|
|
8752
8788
|
c += `
|
|
8753
8789
|
` + h;
|
|
8754
8790
|
}
|
|
8755
|
-
R = !h.trim(), p +=
|
|
8756
|
-
`, e = e.substring(
|
|
8791
|
+
R = !h.trim(), p += Z + `
|
|
8792
|
+
`, e = e.substring(Z.length + 1), d = A.slice(f);
|
|
8757
8793
|
}
|
|
8758
8794
|
}
|
|
8759
8795
|
i.loose || (a ? i.loose = !0 : this.rules.other.doubleBlankLine.test(p) && (a = !0)), i.items.push({
|
|
@@ -8836,7 +8872,7 @@ ${c}` : c;
|
|
|
8836
8872
|
table(e) {
|
|
8837
8873
|
let t = this.rules.block.table.exec(e);
|
|
8838
8874
|
if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
|
|
8839
|
-
let n =
|
|
8875
|
+
let n = V(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
|
8840
8876
|
`) : [], s = {
|
|
8841
8877
|
type: "table",
|
|
8842
8878
|
raw: t[0],
|
|
@@ -8852,7 +8888,7 @@ ${c}` : c;
|
|
|
8852
8888
|
header: !0,
|
|
8853
8889
|
align: s.align[a]
|
|
8854
8890
|
});
|
|
8855
|
-
for (let a of i)s.rows.push(
|
|
8891
|
+
for (let a of i)s.rows.push(V(a, s.header.length).map((o, l)=>({
|
|
8856
8892
|
text: o,
|
|
8857
8893
|
tokens: this.lexer.inline(o),
|
|
8858
8894
|
header: !1,
|
|
@@ -8863,13 +8899,16 @@ ${c}` : c;
|
|
|
8863
8899
|
}
|
|
8864
8900
|
lheading(e) {
|
|
8865
8901
|
let t = this.rules.block.lheading.exec(e);
|
|
8866
|
-
if (t)
|
|
8867
|
-
|
|
8868
|
-
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
|
|
8872
|
-
|
|
8902
|
+
if (t) {
|
|
8903
|
+
let n = t[1].trim();
|
|
8904
|
+
return {
|
|
8905
|
+
type: "heading",
|
|
8906
|
+
raw: t[0],
|
|
8907
|
+
depth: t[2].charAt(0) === "=" ? 1 : 2,
|
|
8908
|
+
text: n,
|
|
8909
|
+
tokens: this.lexer.inline(n)
|
|
8910
|
+
};
|
|
8911
|
+
}
|
|
8873
8912
|
}
|
|
8874
8913
|
paragraph(e) {
|
|
8875
8914
|
let t = this.rules.block.paragraph.exec(e);
|
|
@@ -8918,10 +8957,10 @@ ${c}` : c;
|
|
|
8918
8957
|
let n = t[2].trim();
|
|
8919
8958
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(n)) {
|
|
8920
8959
|
if (!this.rules.other.endAngleBracket.test(n)) return;
|
|
8921
|
-
let s =
|
|
8960
|
+
let s = I(n.slice(0, -1), "\\");
|
|
8922
8961
|
if ((n.length - s.length) % 2 === 0) return;
|
|
8923
8962
|
} else {
|
|
8924
|
-
let s =
|
|
8963
|
+
let s = de(t[2], "()");
|
|
8925
8964
|
if (s === -2) return;
|
|
8926
8965
|
if (s > -1) {
|
|
8927
8966
|
let o = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s;
|
|
@@ -8933,7 +8972,7 @@ ${c}` : c;
|
|
|
8933
8972
|
let s = this.rules.other.pedanticHrefTitle.exec(r);
|
|
8934
8973
|
s && (r = s[1], i = s[3]);
|
|
8935
8974
|
} else i = t[3] ? t[3].slice(1, -1) : "";
|
|
8936
|
-
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)),
|
|
8975
|
+
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)), fe(t, {
|
|
8937
8976
|
href: r && r.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
8938
8977
|
title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
|
|
8939
8978
|
}, t[0], this.lexer, this.rules);
|
|
@@ -8951,17 +8990,17 @@ ${c}` : c;
|
|
|
8951
8990
|
text: s
|
|
8952
8991
|
};
|
|
8953
8992
|
}
|
|
8954
|
-
return
|
|
8993
|
+
return fe(n, i, n[0], this.lexer, this.rules);
|
|
8955
8994
|
}
|
|
8956
8995
|
}
|
|
8957
8996
|
emStrong(e, t, n = "") {
|
|
8958
8997
|
let r = this.rules.inline.emStrongLDelim.exec(e);
|
|
8959
|
-
if (!r || r[3] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
|
|
8960
|
-
if (!(r[1] || r[
|
|
8998
|
+
if (!r || !r[1] && !r[2] && !r[3] && !r[4] || r[4] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
|
|
8999
|
+
if (!(r[1] || r[3] || "") || !n || this.rules.inline.punctuation.exec(n)) {
|
|
8961
9000
|
let s = [
|
|
8962
9001
|
...r[0]
|
|
8963
9002
|
].length - 1, a, o, l = s, p = 0, c = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
8964
|
-
for(c.lastIndex = 0, t = t.slice(-1 * e.length + s); (r = c.exec(t))
|
|
9003
|
+
for(c.lastIndex = 0, t = t.slice(-1 * e.length + s); (r = c.exec(t)) !== null;){
|
|
8965
9004
|
if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a) continue;
|
|
8966
9005
|
if (o = [
|
|
8967
9006
|
...a
|
|
@@ -9021,7 +9060,7 @@ ${c}` : c;
|
|
|
9021
9060
|
let s = [
|
|
9022
9061
|
...r[0]
|
|
9023
9062
|
].length - 1, a, o, l = s, p = this.rules.inline.delRDelim;
|
|
9024
|
-
for(p.lastIndex = 0, t = t.slice(-1 * e.length + s); (r = p.exec(t))
|
|
9063
|
+
for(p.lastIndex = 0, t = t.slice(-1 * e.length + s); (r = p.exec(t)) !== null;){
|
|
9025
9064
|
if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a || (o = [
|
|
9026
9065
|
...a
|
|
9027
9066
|
].length, o !== s)) continue;
|
|
@@ -9104,14 +9143,14 @@ ${c}` : c;
|
|
|
9104
9143
|
_define_property(this, "options", void 0);
|
|
9105
9144
|
_define_property(this, "rules", void 0);
|
|
9106
9145
|
_define_property(this, "lexer", void 0);
|
|
9107
|
-
this.options = e ||
|
|
9146
|
+
this.options = e || O;
|
|
9108
9147
|
}
|
|
9109
9148
|
};
|
|
9110
9149
|
var x = class u {
|
|
9111
9150
|
static get rules() {
|
|
9112
9151
|
return {
|
|
9113
|
-
block:
|
|
9114
|
-
inline:
|
|
9152
|
+
block: B,
|
|
9153
|
+
inline: E
|
|
9115
9154
|
};
|
|
9116
9155
|
}
|
|
9117
9156
|
static lex(e, t) {
|
|
@@ -9130,7 +9169,7 @@ var x = class u {
|
|
|
9130
9169
|
return this.inlineQueue = [], this.tokens;
|
|
9131
9170
|
}
|
|
9132
9171
|
blockTokens(e, t = [], n = !1) {
|
|
9133
|
-
for(this.options.pedantic && (e = e.replace(m.tabCharGlobal, " ").replace(m.spaceLine, "")); e;){
|
|
9172
|
+
for(this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(m.tabCharGlobal, " ").replace(m.spaceLine, "")); e;){
|
|
9134
9173
|
let r;
|
|
9135
9174
|
if (this.options.extensions?.block?.some((s)=>(r = s.call({
|
|
9136
9175
|
lexer: this
|
|
@@ -9238,14 +9277,15 @@ var x = class u {
|
|
|
9238
9277
|
}), t;
|
|
9239
9278
|
}
|
|
9240
9279
|
inlineTokens(e, t = []) {
|
|
9280
|
+
this.tokenizer.lexer = this;
|
|
9241
9281
|
let n = e, r = null;
|
|
9242
9282
|
if (this.tokens.links) {
|
|
9243
9283
|
let o = Object.keys(this.tokens.links);
|
|
9244
|
-
if (o.length > 0) for(; (r = this.tokenizer.rules.inline.reflinkSearch.exec(n))
|
|
9284
|
+
if (o.length > 0) for(; (r = this.tokenizer.rules.inline.reflinkSearch.exec(n)) !== null;)o.includes(r[0].slice(r[0].lastIndexOf("[") + 1, -1)) && (n = n.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
|
|
9245
9285
|
}
|
|
9246
|
-
for(; (r = this.tokenizer.rules.inline.anyPunctuation.exec(n))
|
|
9286
|
+
for(; (r = this.tokenizer.rules.inline.anyPunctuation.exec(n)) !== null;)n = n.slice(0, r.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
|
9247
9287
|
let i;
|
|
9248
|
-
for(; (r = this.tokenizer.rules.inline.blockSkip.exec(n))
|
|
9288
|
+
for(; (r = this.tokenizer.rules.inline.blockSkip.exec(n)) !== null;)i = r[2] ? r[2].length : 0, n = n.slice(0, r.index + i) + "[" + "a".repeat(r[0].length - i - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
9249
9289
|
n = this.options.hooks?.emStrongMask?.call({
|
|
9250
9290
|
lexer: this
|
|
9251
9291
|
}, n) ?? n;
|
|
@@ -9329,17 +9369,17 @@ var x = class u {
|
|
|
9329
9369
|
_define_property(this, "state", void 0);
|
|
9330
9370
|
_define_property(this, "inlineQueue", void 0);
|
|
9331
9371
|
_define_property(this, "tokenizer", void 0);
|
|
9332
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
9372
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || O, 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 = {
|
|
9333
9373
|
inLink: !1,
|
|
9334
9374
|
inRawBlock: !1,
|
|
9335
9375
|
top: !0
|
|
9336
9376
|
};
|
|
9337
9377
|
let t = {
|
|
9338
9378
|
other: m,
|
|
9339
|
-
block:
|
|
9340
|
-
inline:
|
|
9379
|
+
block: B.normal,
|
|
9380
|
+
inline: E.normal
|
|
9341
9381
|
};
|
|
9342
|
-
this.options.pedantic ? (t.block =
|
|
9382
|
+
this.options.pedantic ? (t.block = B.pedantic, t.inline = E.pedantic) : this.options.gfm && (t.block = B.gfm, this.options.breaks ? t.inline = E.breaks : t.inline = E.gfm), this.tokenizer.rules = t;
|
|
9343
9383
|
}
|
|
9344
9384
|
};
|
|
9345
9385
|
var y = class {
|
|
@@ -9349,8 +9389,8 @@ var y = class {
|
|
|
9349
9389
|
code({ text: e, lang: t, escaped: n }) {
|
|
9350
9390
|
let r = (t || "").match(m.notSpaceStart)?.[0], i = e.replace(m.endingNewline, "") + `
|
|
9351
9391
|
`;
|
|
9352
|
-
return r ? '<pre><code class="language-' +
|
|
9353
|
-
` : "<pre><code>" + (n ? i :
|
|
9392
|
+
return r ? '<pre><code class="language-' + T(r) + '">' + (n ? i : T(i, !0)) + `</code></pre>
|
|
9393
|
+
` : "<pre><code>" + (n ? i : T(i, !0)) + `</code></pre>
|
|
9354
9394
|
`;
|
|
9355
9395
|
}
|
|
9356
9396
|
blockquote({ tokens: e }) {
|
|
@@ -9432,7 +9472,7 @@ ${e}</tr>
|
|
|
9432
9472
|
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
9433
9473
|
}
|
|
9434
9474
|
codespan({ text: e }) {
|
|
9435
|
-
return `<code>${
|
|
9475
|
+
return `<code>${T(e, !0)}</code>`;
|
|
9436
9476
|
}
|
|
9437
9477
|
br(e) {
|
|
9438
9478
|
return "<br>";
|
|
@@ -9441,27 +9481,27 @@ ${e}</tr>
|
|
|
9441
9481
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
9442
9482
|
}
|
|
9443
9483
|
link({ href: e, title: t, tokens: n }) {
|
|
9444
|
-
let r = this.parser.parseInline(n), i =
|
|
9484
|
+
let r = this.parser.parseInline(n), i = J(e);
|
|
9445
9485
|
if (i === null) return r;
|
|
9446
9486
|
e = i;
|
|
9447
9487
|
let s = '<a href="' + e + '"';
|
|
9448
|
-
return t && (s += ' title="' +
|
|
9488
|
+
return t && (s += ' title="' + T(t) + '"'), s += ">" + r + "</a>", s;
|
|
9449
9489
|
}
|
|
9450
9490
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
9451
9491
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
9452
|
-
let i =
|
|
9453
|
-
if (i === null) return
|
|
9492
|
+
let i = J(e);
|
|
9493
|
+
if (i === null) return T(n);
|
|
9454
9494
|
e = i;
|
|
9455
|
-
let s = `<img src="${e}" alt="${
|
|
9456
|
-
return t && (s += ` title="${
|
|
9495
|
+
let s = `<img src="${e}" alt="${T(n)}"`;
|
|
9496
|
+
return t && (s += ` title="${T(t)}"`), s += ">", s;
|
|
9457
9497
|
}
|
|
9458
9498
|
text(e) {
|
|
9459
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text :
|
|
9499
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : T(e.text);
|
|
9460
9500
|
}
|
|
9461
9501
|
constructor(e){
|
|
9462
9502
|
_define_property(this, "options", void 0);
|
|
9463
9503
|
_define_property(this, "parser", void 0);
|
|
9464
|
-
this.options = e ||
|
|
9504
|
+
this.options = e || O;
|
|
9465
9505
|
}
|
|
9466
9506
|
};
|
|
9467
9507
|
var $ = class {
|
|
@@ -9504,6 +9544,7 @@ var b = class u {
|
|
|
9504
9544
|
return new u(t).parseInline(e);
|
|
9505
9545
|
}
|
|
9506
9546
|
parse(e) {
|
|
9547
|
+
this.renderer.parser = this;
|
|
9507
9548
|
let t = "";
|
|
9508
9549
|
for(let n = 0; n < e.length; n++){
|
|
9509
9550
|
let r = e[n];
|
|
@@ -9601,6 +9642,7 @@ var b = class u {
|
|
|
9601
9642
|
return t;
|
|
9602
9643
|
}
|
|
9603
9644
|
parseInline(e, t = this.renderer) {
|
|
9645
|
+
this.renderer.parser = this;
|
|
9604
9646
|
let n = "";
|
|
9605
9647
|
for(let r = 0; r < e.length; r++){
|
|
9606
9648
|
let i = e[r];
|
|
@@ -9695,7 +9737,7 @@ var b = class u {
|
|
|
9695
9737
|
_define_property(this, "options", void 0);
|
|
9696
9738
|
_define_property(this, "renderer", void 0);
|
|
9697
9739
|
_define_property(this, "textRenderer", void 0);
|
|
9698
|
-
this.options = e ||
|
|
9740
|
+
this.options = e || O, 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 $;
|
|
9699
9741
|
}
|
|
9700
9742
|
};
|
|
9701
9743
|
var P = (_class = class {
|
|
@@ -9711,16 +9753,16 @@ var P = (_class = class {
|
|
|
9711
9753
|
emStrongMask(e) {
|
|
9712
9754
|
return e;
|
|
9713
9755
|
}
|
|
9714
|
-
provideLexer() {
|
|
9715
|
-
return
|
|
9756
|
+
provideLexer(e = this.block) {
|
|
9757
|
+
return e ? x.lex : x.lexInline;
|
|
9716
9758
|
}
|
|
9717
|
-
provideParser() {
|
|
9718
|
-
return
|
|
9759
|
+
provideParser(e = this.block) {
|
|
9760
|
+
return e ? b.parse : b.parseInline;
|
|
9719
9761
|
}
|
|
9720
9762
|
constructor(e){
|
|
9721
9763
|
_define_property(this, "options", void 0);
|
|
9722
9764
|
_define_property(this, "block", void 0);
|
|
9723
|
-
this.options = e ||
|
|
9765
|
+
this.options = e || O;
|
|
9724
9766
|
}
|
|
9725
9767
|
}, _define_property(_class, "passThroughHooks", new Set([
|
|
9726
9768
|
"preprocess",
|
|
@@ -9732,7 +9774,7 @@ var P = (_class = class {
|
|
|
9732
9774
|
"postprocess",
|
|
9733
9775
|
"processAllTokens"
|
|
9734
9776
|
])), _class);
|
|
9735
|
-
var
|
|
9777
|
+
var D = class {
|
|
9736
9778
|
walkTokens(e, t) {
|
|
9737
9779
|
let n = [];
|
|
9738
9780
|
for (let r of e)switch(n = n.concat(t.call(this, r)), r.type){
|
|
@@ -9887,16 +9929,16 @@ var B = class {
|
|
|
9887
9929
|
if (typeof n > "u" || n === null) return a(new Error("marked(): input parameter is undefined or null"));
|
|
9888
9930
|
if (typeof n != "string") return a(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
|
|
9889
9931
|
if (s.hooks && (s.hooks.options = s, s.hooks.block = e), s.async) return (async ()=>{
|
|
9890
|
-
let o = s.hooks ? await s.hooks.preprocess(n) : n, p = await (s.hooks ? await s.hooks.provideLexer() : e ? x.lex : x.lexInline)(o, s), c = s.hooks ? await s.hooks.processAllTokens(p) : p;
|
|
9932
|
+
let o = s.hooks ? await s.hooks.preprocess(n) : n, p = await (s.hooks ? await s.hooks.provideLexer(e) : e ? x.lex : x.lexInline)(o, s), c = s.hooks ? await s.hooks.processAllTokens(p) : p;
|
|
9891
9933
|
s.walkTokens && await Promise.all(this.walkTokens(c, s.walkTokens));
|
|
9892
|
-
let h = await (s.hooks ? await s.hooks.provideParser() : e ? b.parse : b.parseInline)(c, s);
|
|
9934
|
+
let h = await (s.hooks ? await s.hooks.provideParser(e) : e ? b.parse : b.parseInline)(c, s);
|
|
9893
9935
|
return s.hooks ? await s.hooks.postprocess(h) : h;
|
|
9894
9936
|
})().catch(a);
|
|
9895
9937
|
try {
|
|
9896
9938
|
s.hooks && (n = s.hooks.preprocess(n));
|
|
9897
|
-
let l = (s.hooks ? s.hooks.provideLexer() : e ? x.lex : x.lexInline)(n, s);
|
|
9939
|
+
let l = (s.hooks ? s.hooks.provideLexer(e) : e ? x.lex : x.lexInline)(n, s);
|
|
9898
9940
|
s.hooks && (l = s.hooks.processAllTokens(l)), s.walkTokens && this.walkTokens(l, s.walkTokens);
|
|
9899
|
-
let c = (s.hooks ? s.hooks.provideParser() : e ? b.parse : b.parseInline)(l, s);
|
|
9941
|
+
let c = (s.hooks ? s.hooks.provideParser(e) : e ? b.parse : b.parseInline)(l, s);
|
|
9900
9942
|
return s.hooks && (c = s.hooks.postprocess(c)), c;
|
|
9901
9943
|
} catch (o) {
|
|
9902
9944
|
return a(o);
|
|
@@ -9907,7 +9949,7 @@ var B = class {
|
|
|
9907
9949
|
return (n)=>{
|
|
9908
9950
|
if (n.message += `
|
|
9909
9951
|
Please report this to https://github.com/markedjs/marked.`, e) {
|
|
9910
|
-
let r = "<p>An error occurred:</p><pre>" +
|
|
9952
|
+
let r = "<p>An error occurred:</p><pre>" + T(n.message + "", !0) + "</pre>";
|
|
9911
9953
|
return t ? Promise.resolve(r) : r;
|
|
9912
9954
|
}
|
|
9913
9955
|
if (t) return Promise.reject(n);
|
|
@@ -9928,7 +9970,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
9928
9970
|
this.use(...e);
|
|
9929
9971
|
}
|
|
9930
9972
|
};
|
|
9931
|
-
var L = new
|
|
9973
|
+
var L = new D;
|
|
9932
9974
|
function g(u, e) {
|
|
9933
9975
|
return L.parse(u, e);
|
|
9934
9976
|
}
|
|
@@ -9936,7 +9978,7 @@ g.options = g.setOptions = function(u) {
|
|
|
9936
9978
|
return L.setOptions(u), g.defaults = L.defaults, G(g.defaults), g;
|
|
9937
9979
|
};
|
|
9938
9980
|
g.getDefaults = M;
|
|
9939
|
-
g.defaults =
|
|
9981
|
+
g.defaults = O;
|
|
9940
9982
|
g.use = function(...u) {
|
|
9941
9983
|
return L.use(...u), g.defaults = L.defaults, G(g.defaults), g;
|
|
9942
9984
|
};
|
|
@@ -9953,7 +9995,7 @@ g.lexer = x.lex;
|
|
|
9953
9995
|
g.Tokenizer = w;
|
|
9954
9996
|
g.Hooks = P;
|
|
9955
9997
|
g.parse = g;
|
|
9956
|
-
var
|
|
9998
|
+
var Qt = g.options, jt = g.setOptions, Ft = g.use, Ut = g.walkTokens, Kt = g.parseInline, Wt = (/* unused pure expression or super */ null && (g)), Xt = b.parse, Jt = x.lex;
|
|
9957
9999
|
//# sourceMappingURL=marked.esm.js.map
|
|
9958
10000
|
|
|
9959
10001
|
|