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 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 | Sanitize the html, prevent XSS. After 3.x, dangerous code has been processed by default. Please do not use this attribute unless there are special requirements |
121
- | noIconfont | `boolean` | false | Not append iconfont script, download different versions [SVG](https://at.alicdn.com/t/c/font_2605852_prouiefeic.js)或[Font Class](https://at.alicdn.com/t/c/font_2605852_prouiefeic.css) and import it by yourself |
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/font_2605852_rfu1p40qggh.js";
5
- const iconfontClassUrl = "https://at.alicdn.com/t/c/font_2605852_rfu1p40qggh.css";
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-re+xpK8m5zCba6cD67TTpnI2Exr9m2LkD1LyD0wsKnETw00YWUOFOpuoPLrRDlgF",
368
+ integrity: "sha384-HRrf1e8/EiqrIZQftejl7pMTeuLeYczOz7rolAGxgw86N7UjiXkex67Uf2XTZz5z",
369
369
  crossOrigin: "anonymous"
370
370
  },
371
371
  iconfontClass: {
372
- integrity: "sha384-aM5RSsvQjertneee/Ntz1poyGMo3kWmIhBciGBibd5+pnaXBlZoMkLO4StM7tH10",
372
+ integrity: "sha384-81pjilF/gLoQvAfd8madmeylVdv8IagPQaq1C/OZbysLav7k9g+Ir3XD5qK00Q5r",
373
373
  crossOrigin: "anonymous"
374
374
  },
375
375
  screenfull: {