md-editor-v3 4.15.5 → 4.16.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/lib/cjs/chunks/config.cjs +4 -4
- package/lib/cjs/chunks/index.cjs +1411 -61
- package/lib/cjs/index.cjs +1 -0
- package/lib/es/MdEditor.mjs +2 -2
- package/lib/es/chunks/config.mjs +4 -4
- package/lib/es/chunks/event-name.mjs +13 -13
- package/lib/es/chunks/index.mjs +1402 -52
- package/lib/es/chunks/index4.mjs +3 -3
- package/lib/es/index.mjs +2 -1
- package/lib/preview.css +1 -1
- package/lib/style.css +1 -1
- package/lib/types/MdEditor/components/Icon/Icon.d.ts +1 -1
- package/lib/types/MdEditor/components/Icon/Str.d.ts +1 -1
- package/lib/types/MdEditor/config.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Content/markdownIt/code/index.d.ts +3 -2
- package/lib/types/MdEditor/layouts/Content/markdownIt/xss/index.d.ts +14 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/umd/index.js +56 -58
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -117,8 +117,8 @@ Inputing prompt and mark, emoji extensions
|
|
|
117
117
|
| noKatex | `boolean` | false | Use katex or not |
|
|
118
118
|
| codeTheme | `'atom' \| 'a11y' \| 'github' \| 'gradient' \| 'kimbie' \| 'paraiso' \| 'qtcreator' \| 'stackoverflow'` | 'atom' | Highlight code style, can be customized also |
|
|
119
119
|
| mdHeadingId | `(text: string, level: number, index: number) => string` | (text) => text | H1-H6 `ID` generator |
|
|
120
|
-
| sanitize | `(html: string) => string` | (html) => html |
|
|
121
|
-
| noIconfont | `boolean` | false | Not append iconfont script, download different versions [SVG](https://at.alicdn.com/t/c/
|
|
120
|
+
| sanitize | `(html: string) => string` | (html) => html | This attribute is used to alter the compiled HTML content |
|
|
121
|
+
| noIconfont | `boolean` | false | Not append iconfont script, download different versions [SVG](https://at.alicdn.com/t/c/font_2605852_d06wmn2c1od.js)或[Font Class](https://at.alicdn.com/t/c/font_2605852_d06wmn2c1od.css) and import it by yourself |
|
|
122
122
|
| formatCopiedText | `(text: string) => string` | (text: string) => text | Format copied code |
|
|
123
123
|
| codeStyleReverse | `boolean` | true | Code style will be reversed to dark while code block of the theme has a dark background |
|
|
124
124
|
| codeStyleReverseList | `Array<string>` | ['default', 'mk-cute'] | Themes to be reversed |
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const util = require("@vavt/util");
|
|
3
3
|
const prefix = "md-editor";
|
|
4
|
-
const iconfontSvgUrl = "https://at.alicdn.com/t/c/
|
|
5
|
-
const iconfontClassUrl = "https://at.alicdn.com/t/c/
|
|
4
|
+
const iconfontSvgUrl = "https://at.alicdn.com/t/c/font_2605852_cmafimm6hot.js";
|
|
5
|
+
const iconfontClassUrl = "https://at.alicdn.com/t/c/font_2605852_cmafimm6hot.css";
|
|
6
6
|
const cdnBase = "https://cdnjs.cloudflare.com/ajax/libs";
|
|
7
7
|
const highlightUrl = `${cdnBase}/highlight.js/11.8.0/highlight.min.js`;
|
|
8
8
|
const prettierUrl = {
|
|
@@ -365,11 +365,11 @@ const editorExtensionsAttrs = {
|
|
|
365
365
|
}
|
|
366
366
|
},
|
|
367
367
|
iconfont: {
|
|
368
|
-
integrity: "sha384-
|
|
368
|
+
integrity: "sha384-HRrf1e8/EiqrIZQftejl7pMTeuLeYczOz7rolAGxgw86N7UjiXkex67Uf2XTZz5z",
|
|
369
369
|
crossOrigin: "anonymous"
|
|
370
370
|
},
|
|
371
371
|
iconfontClass: {
|
|
372
|
-
integrity: "sha384-
|
|
372
|
+
integrity: "sha384-81pjilF/gLoQvAfd8madmeylVdv8IagPQaq1C/OZbysLav7k9g+Ir3XD5qK00Q5r",
|
|
373
373
|
crossOrigin: "anonymous"
|
|
374
374
|
},
|
|
375
375
|
screenfull: {
|