md-editor-v3 4.15.5 → 4.15.6

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.
@@ -51,8 +51,8 @@ const getZIndexIncrement = /* @__PURE__ */ (() => {
51
51
  })();
52
52
  export {
53
53
  getZIndexIncrement as a,
54
- generateCodeRowNumber as b,
55
- getNextId as c,
56
- base642File as d,
54
+ base642File as b,
55
+ generateCodeRowNumber as c,
56
+ getNextId as d,
57
57
  getRelativeTop as g
58
58
  };
@@ -0,0 +1,14 @@
1
+ import { default as markdownit } from 'markdown-it';
2
+ /**
3
+ * 重写markdown-it-xss,它的作者好像不维护了
4
+ */
5
+ import * as xss from 'xss';
6
+ export interface XSSPluginType {
7
+ xss?: (_xss: typeof xss) => XSS.IFilterXSSOptions | xss.IFilterXSSOptions;
8
+ /**
9
+ * 它不会覆盖默认的白名单,而是把默认白名单、内置白名单结合
10
+ */
11
+ extendedWhiteList?: xss.IFilterXSSOptions['whiteList'];
12
+ }
13
+ declare const XSSPlugin: (md: markdownit, options: XSSPluginType) => void;
14
+ export default XSSPlugin;