md-editor-v3 7.0.0 → 7.1.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.
@@ -1,5 +1,5 @@
1
- import { p as d } from "./config.mjs";
2
- const w = /^<\s*(\/?)\s*([a-zA-Z][a-zA-Z0-9:_-]*)(?:\s[\s\S]*?)?\s*(\/?)>$/, A = /* @__PURE__ */ new Set([
1
+ import { i as w, p as d } from "./config.mjs";
2
+ const R = /^<\s*(\/?)\s*([a-zA-Z][a-zA-Z0-9:_-]*)(?:\s[\s\S]*?)?\s*(\/?)>$/, S = /* @__PURE__ */ new Set([
3
3
  "area",
4
4
  "base",
5
5
  "br",
@@ -14,24 +14,24 @@ const w = /^<\s*(\/?)\s*([a-zA-Z][a-zA-Z0-9:_-]*)(?:\s[\s\S]*?)?\s*(\/?)>$/, A =
14
14
  "source",
15
15
  "track",
16
16
  "wbr"
17
- ]), R = (e) => e.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&#39;"), S = (e) => {
18
- const n = e.replace(/\r\n?/g, `
19
- `), t = n.endsWith(`
20
- `) ? n.slice(0, -1) : n;
17
+ ]), L = (n) => {
18
+ const e = n.replace(/\r\n?/g, `
19
+ `), t = e.endsWith(`
20
+ `) ? e.slice(0, -1) : e;
21
21
  return t ? t.split(`
22
22
  `) : [""];
23
- }, p = (e, n) => {
24
- if (e.startsWith("<!--", n)) {
25
- const s = e.indexOf("-->", n + 4);
23
+ }, p = (n, e) => {
24
+ if (n.startsWith("<!--", e)) {
25
+ const s = n.indexOf("-->", e + 4);
26
26
  return s === -1 ? -1 : s + 2;
27
27
  }
28
- if (e.startsWith("<![CDATA[", n)) {
29
- const s = e.indexOf("]]>", n + 9);
28
+ if (n.startsWith("<![CDATA[", e)) {
29
+ const s = n.indexOf("]]>", e + 9);
30
30
  return s === -1 ? -1 : s + 2;
31
31
  }
32
32
  let t = "";
33
- for (let s = n + 1; s < e.length; s += 1) {
34
- const r = e[s];
33
+ for (let s = e + 1; s < n.length; s += 1) {
34
+ const r = n[s];
35
35
  if (t) {
36
36
  r === t && (t = "");
37
37
  continue;
@@ -42,45 +42,45 @@ const w = /^<\s*(\/?)\s*([a-zA-Z][a-zA-Z0-9:_-]*)(?:\s[\s\S]*?)?\s*(\/?)>$/, A =
42
42
  return s;
43
43
  }
44
44
  return -1;
45
- }, x = (e) => {
46
- const n = w.exec(e);
47
- if (!n)
45
+ }, x = (n) => {
46
+ const e = R.exec(n);
47
+ if (!e)
48
48
  return null;
49
- const t = n[2].toLowerCase();
49
+ const t = e[2].toLowerCase();
50
50
  return {
51
- isClosing: n[1] === "/",
52
- isSelfClosing: n[3] === "/" || A.has(t),
51
+ isClosing: e[1] === "/",
52
+ isSelfClosing: e[3] === "/" || S.has(t),
53
53
  name: t,
54
- source: e
54
+ source: n
55
55
  };
56
- }, f = (e, n) => {
57
- const t = e.indexOf("<", n);
56
+ }, f = (n, e) => {
57
+ const t = n.indexOf("<", e);
58
58
  if (t === -1)
59
59
  return null;
60
- const s = p(e, t);
60
+ const s = p(n, t);
61
61
  return s === -1 ? null : {
62
62
  endIndex: s,
63
- parsedTag: x(e.slice(t, s + 1)),
63
+ parsedTag: x(n.slice(t, s + 1)),
64
64
  startIndex: t
65
65
  };
66
- }, L = (e) => e.map((n) => n.openingTag).join(""), H = (e) => [...e].reverse().map((n) => `</${n.name}>`).join(""), E = (e) => {
67
- let n = 0;
68
- for (; n < e.length; ) {
69
- const t = f(e, n), s = t?.startIndex ?? e.length;
70
- if (e.slice(n, s).trim())
66
+ }, H = (n) => n.map((e) => e.openingTag).join(""), A = (n) => [...n].reverse().map((e) => `</${e.name}>`).join(""), E = (n) => {
67
+ let e = 0;
68
+ for (; e < n.length; ) {
69
+ const t = f(n, e), s = t?.startIndex ?? n.length;
70
+ if (n.slice(e, s).trim())
71
71
  return !0;
72
72
  if (!t)
73
73
  return !1;
74
- n = t.endIndex + 1;
74
+ e = t.endIndex + 1;
75
75
  }
76
76
  return !1;
77
- }, M = (e) => {
78
- const n = f(e, 0);
79
- if (!n || n.startIndex !== 0 || n.parsedTag?.name !== "pre" || n.parsedTag.isClosing || n.parsedTag.isSelfClosing)
77
+ }, M = (n) => {
78
+ const e = f(n, 0);
79
+ if (!e || e.startIndex !== 0 || e.parsedTag?.name !== "pre" || e.parsedTag.isClosing || e.parsedTag.isSelfClosing)
80
80
  return null;
81
- let t = 0, s = -1, r = n.endIndex + 1;
82
- for (; r < e.length; ) {
83
- const i = f(e, r);
81
+ let t = 0, s = -1, r = e.endIndex + 1;
82
+ for (; r < n.length; ) {
83
+ const i = f(n, r);
84
84
  if (!i)
85
85
  break;
86
86
  const o = i.parsedTag;
@@ -101,58 +101,58 @@ const w = /^<\s*(\/?)\s*([a-zA-Z][a-zA-Z0-9:_-]*)(?:\s[\s\S]*?)?\s*(\/?)>$/, A =
101
101
  r = i.endIndex + 1;
102
102
  }
103
103
  return null;
104
- }, k = (e) => {
105
- const n = e.replace(/\r\n?/g, `
104
+ }, k = (n) => {
105
+ const e = n.replace(/\r\n?/g, `
106
106
  `), t = [""], s = [];
107
107
  let r = 0, i = 0;
108
- for (; i < n.length; ) {
109
- const o = n[i];
108
+ for (; i < e.length; ) {
109
+ const o = e[i];
110
110
  if (o === "<") {
111
- const l = p(n, i);
112
- if (l === -1) {
113
- t[r] += n.slice(i);
111
+ const c = p(e, i);
112
+ if (c === -1) {
113
+ t[r] += e.slice(i);
114
114
  break;
115
115
  }
116
- const g = n.slice(i, l + 1), c = x(g);
117
- if (t[r] += g, c)
118
- if (c.isClosing) {
116
+ const g = e.slice(i, c + 1), l = x(g);
117
+ if (t[r] += g, l)
118
+ if (l.isClosing) {
119
119
  for (let a = s.length - 1; a >= 0; a -= 1)
120
- if (s[a].name === c.name) {
120
+ if (s[a].name === l.name) {
121
121
  s.splice(a, 1);
122
122
  break;
123
123
  }
124
- } else c.isSelfClosing || s.push({
125
- name: c.name,
126
- openingTag: c.source
124
+ } else l.isSelfClosing || s.push({
125
+ name: l.name,
126
+ openingTag: l.source
127
127
  });
128
- i = l + 1;
128
+ i = c + 1;
129
129
  continue;
130
130
  }
131
131
  if (o === `
132
132
  `) {
133
- t[r] += H(s), t.push(L(s)), r += 1, i += 1;
133
+ t[r] += A(s), t.push(H(s)), r += 1, i += 1;
134
134
  continue;
135
135
  }
136
136
  t[r] += o, i += 1;
137
137
  }
138
138
  return t;
139
- }, G = (e, n = "image.png") => {
140
- const t = e.split(","), s = t[0].match(/:(.*?);/);
139
+ }, G = (n, e = "image.png") => {
140
+ const t = n.split(","), s = t[0].match(/:(.*?);/);
141
141
  if (s) {
142
142
  const r = s[1], i = atob(t[1]);
143
143
  let o = i.length;
144
- const l = new Uint8Array(o);
144
+ const c = new Uint8Array(o);
145
145
  for (; o--; )
146
- l[o] = i.charCodeAt(o);
147
- return new File([l], n, { type: r });
146
+ c[o] = i.charCodeAt(o);
147
+ return new File([c], e, { type: r });
148
148
  }
149
149
  return null;
150
- }, y = (e, n, t = {}) => {
151
- const { lineHighlightRanges: s = [], showLineNumber: r = !1 } = t, i = S(n), o = k(e);
150
+ }, y = (n, e, t = {}) => {
151
+ const { lineHighlightRanges: s = [], showLineNumber: r = !1 } = t, i = L(e), o = k(n);
152
152
  for (; o.length > i.length && !E(o[o.length - 1]); )
153
153
  o.pop();
154
- const l = o.length === i.length, g = i.map((a, h) => {
155
- const m = l ? o[h] : R(a), u = h + 1, I = s.some(
154
+ const c = o.length === i.length, g = i.map((a, h) => {
155
+ const m = c ? o[h] : w(a), u = h + 1, I = s.some(
156
156
  ({ start: b, end: $ }) => u >= b && u <= $
157
157
  ), C = [
158
158
  `${d}-code-line`,
@@ -165,36 +165,36 @@ const w = /^<\s*(\/?)\s*([a-zA-Z][a-zA-Z0-9:_-]*)(?:\s[\s\S]*?)?\s*(\/?)>$/, A =
165
165
  `<span class="${d}-code-line-content">${m}</span>`,
166
166
  "</span>"
167
167
  ].join("");
168
- }), c = r ? ` style="--md-code-line-number-width: ${Math.max(2, String(i.length).length) + 0.5}ch;"` : "";
169
- return `<span class="${d}-code-block-lines"${c}>${g.join(`
168
+ }), l = r ? ` style="--md-code-line-number-width: ${Math.max(2, String(i.length).length) + 0.5}ch;"` : "";
169
+ return `<span class="${d}-code-block-lines"${l}>${g.join(`
170
170
  `)}</span>`;
171
- }, B = (e, n, t = {}) => {
172
- const s = M(e);
171
+ }, B = (n, e, t = {}) => {
172
+ const s = M(n);
173
173
  if (!s)
174
174
  return null;
175
175
  const r = y(
176
- e.slice(s.startIndex, s.endIndex),
177
- n,
176
+ n.slice(s.startIndex, s.endIndex),
177
+ e,
178
178
  t
179
179
  );
180
- return `${e.slice(0, s.startIndex)}${r}${e.slice(s.endIndex)}`;
181
- }, N = (e, n, t = {}) => {
180
+ return `${n.slice(0, s.startIndex)}${r}${n.slice(s.endIndex)}`;
181
+ }, N = (n, e, t = {}) => {
182
182
  const { lineHighlightRanges: s = [], showLineNumber: r = !1 } = t;
183
- return !r && !s.length ? { html: e, shouldReturnDirectly: !0 } : e.startsWith("<pre") ? {
184
- html: B(e, n, t) ?? e,
183
+ return !r && !s.length ? { html: n, shouldReturnDirectly: !0 } : n.startsWith("<pre") ? {
184
+ html: B(n, e, t) ?? n,
185
185
  shouldReturnDirectly: !0
186
- } : { html: e, shouldReturnDirectly: !1 };
187
- }, j = (e, n) => {
188
- if (!e || !n)
186
+ } : { html: n, shouldReturnDirectly: !1 };
187
+ }, j = (n, e) => {
188
+ if (!n || !e)
189
189
  return 0;
190
- const t = e?.getBoundingClientRect();
191
- if (n === document.documentElement)
192
- return t.top - n.clientTop;
193
- const s = n?.getBoundingClientRect();
190
+ const t = n?.getBoundingClientRect();
191
+ if (e === document.documentElement)
192
+ return t.top - e.clientTop;
193
+ const s = e?.getBoundingClientRect();
194
194
  return t.top - s.top;
195
195
  }, W = /* @__PURE__ */ (() => {
196
- let e = 0;
197
- return () => ++e;
196
+ let n = 0;
197
+ return () => ++n;
198
198
  })();
199
199
  export {
200
200
  y as a,
@@ -124,8 +124,8 @@ declare const mdPreviewProps: {
124
124
  };
125
125
  /**
126
126
  *
127
- * 不能保证文本正确的情况,在marked编译md文本后通过该方法处理
128
- * 推荐DOMPurify、sanitize-html
127
+ * Markdown 编译后的 HTML 后处理入口。原生 HTML 默认关闭;显式开启或使用
128
+ * 自定义 renderer 时,可在这里接入 DOMPurify、sanitize-html 等业务清洗策略。
129
129
  *
130
130
  * @default (text: string) => text
131
131
  */
@@ -206,6 +206,7 @@ declare const mdPreviewProps: {
206
206
  type: PropType<CustomIcon>;
207
207
  default: {};
208
208
  };
209
+ /** Mermaid 在默认 strict 渲染之后的异步 SVG 后处理入口。 */
209
210
  sanitizeMermaid: {
210
211
  type: PropType<(h: string) => Promise<string>>;
211
212
  default: (h: string) => Promise<string>;
@@ -663,8 +664,8 @@ declare const editorProps: {
663
664
  };
664
665
  /**
665
666
  *
666
- * 不能保证文本正确的情况,在marked编译md文本后通过该方法处理
667
- * 推荐DOMPurify、sanitize-html
667
+ * Markdown 编译后的 HTML 后处理入口。原生 HTML 默认关闭;显式开启或使用
668
+ * 自定义 renderer 时,可在这里接入 DOMPurify、sanitize-html 等业务清洗策略。
668
669
  *
669
670
  * @default (text: string) => text
670
671
  */
@@ -745,6 +746,7 @@ declare const editorProps: {
745
746
  type: PropType<CustomIcon>;
746
747
  default: {};
747
748
  };
749
+ /** Mermaid 在默认 strict 渲染之后的异步 SVG 后处理入口。 */
748
750
  sanitizeMermaid: {
749
751
  type: PropType<(h: string) => Promise<string>>;
750
752
  default: (h: string) => Promise<string>;
@@ -1037,6 +1039,15 @@ interface GlobalConfig {
1037
1039
  editorId: string;
1038
1040
  element: HTMLElement;
1039
1041
  }) => any;
1042
+ /**
1043
+ * 在 echartsConfig 之后、setOption 之前同步处理渲染配置。
1044
+ * 默认使用 richText tooltip、转义数据视图文案并限制跳转协议。
1045
+ * 与 parseOption 独立;内容可信时可配置 (option) => option 开放完整渲染能力。
1046
+ */
1047
+ sanitizeOption?: (option: any, context: {
1048
+ editorId: string;
1049
+ element: HTMLElement;
1050
+ }) => any;
1040
1051
  };
1041
1052
  };
1042
1053
  /**
@@ -1124,21 +1135,21 @@ interface GlobalConfig {
1124
1135
  editorId: string;
1125
1136
  }) => Array<MarkdownItConfigPlugin>;
1126
1137
  /**
1127
- * mermaid配置项
1138
+ * Mermaid 配置项。默认 securityLevel 为 strict,可显式设置 loose 开放交互能力。
1128
1139
  *
1129
1140
  * @param base
1130
1141
  * @returns
1131
1142
  */
1132
1143
  mermaidConfig: (base: any) => any;
1133
1144
  /**
1134
- * katex配置
1145
+ * KaTeX 配置。默认 trust 为 false,可显式设置 true 或信任判断函数。
1135
1146
  *
1136
1147
  * @param baseConfig
1137
1148
  * @returns
1138
1149
  */
1139
1150
  katexConfig: (baseConfig: any) => any;
1140
1151
  /**
1141
- * echarts配置
1152
+ * 处理解析后的 ECharts option,随后仍会经过 editorExtensions.echarts.sanitizeOption。
1142
1153
  *
1143
1154
  * @returns
1144
1155
  */
@@ -1152,7 +1163,7 @@ type Config = (options: Partial<GlobalConfig>) => void;
1152
1163
  * 编辑器操作潜在的错误
1153
1164
  */
1154
1165
  interface InnerError {
1155
- name: 'Cropper' | 'fullscreen' | 'prettier' | 'overlength' | 'mermaid';
1166
+ name: 'Cropper' | 'fullscreen' | 'prettier' | 'overlength' | 'mermaid' | 'echarts';
1156
1167
  message: string;
1157
1168
  data?: any;
1158
1169
  error?: Error;
@@ -1850,18 +1861,10 @@ declare const Editor: vue.DefineComponent<vue.ExtractPropTypes<{
1850
1861
  onOnInputBoxWidthChange?: ((...args: any[]) => any) | undefined;
1851
1862
  onOnRemount?: ((...args: any[]) => any) | undefined;
1852
1863
  }>, {
1853
- onChange: ChangeEvent;
1854
- language: string;
1855
- theme: Themes;
1856
- previewTheme: string;
1857
- codeTheme: string;
1858
- disabled: boolean;
1859
- showToolbarName: boolean;
1860
- class: string;
1861
- style: string | vue.CSSProperties;
1862
1864
  preview: boolean;
1863
1865
  pageFullscreen: boolean;
1864
1866
  htmlPreview: boolean;
1867
+ onChange: ChangeEvent;
1865
1868
  onSave: SaveEvent;
1866
1869
  onUploadImg: UploadImgEvent;
1867
1870
  onHtmlChanged: HtmlChangedEvent;
@@ -1890,22 +1893,30 @@ declare const Editor: vue.DefineComponent<vue.ExtractPropTypes<{
1890
1893
  }>;
1891
1894
  noUploadImg: boolean;
1892
1895
  autoFocus: boolean;
1896
+ disabled: boolean;
1893
1897
  readOnly: boolean;
1894
1898
  maxLength: number;
1895
1899
  autoDetectCode: boolean;
1896
1900
  completions: _codemirror_autocomplete.CompletionSource[];
1901
+ showToolbarName: boolean;
1897
1902
  inputBoxWidth: string;
1898
1903
  transformImgUrl: (t: string) => string | Promise<string>;
1899
- catalogLayout: "flat" | "fixed";
1904
+ catalogLayout: "fixed" | "flat";
1900
1905
  catalogMaxDepth: number;
1901
1906
  modelValue: string;
1907
+ theme: Themes;
1908
+ class: string;
1909
+ language: string;
1902
1910
  editorId: string;
1903
1911
  id: string;
1904
1912
  showCodeRowNumber: boolean;
1913
+ previewTheme: string;
1914
+ style: string | vue.CSSProperties;
1905
1915
  mdHeadingId: MdHeadingId;
1906
1916
  sanitize: (html: string) => string;
1907
1917
  noMermaid: boolean;
1908
1918
  noKatex: boolean;
1919
+ codeTheme: string;
1909
1920
  formatCopiedText: (text: string) => string;
1910
1921
  codeStyleReverse: boolean;
1911
1922
  codeStyleReverseList: string[];
@@ -2025,17 +2036,17 @@ declare const _default$b: vue.DefineComponent<vue.ExtractPropTypes<{
2025
2036
  onOnClick?: ((...args: any[]) => any) | undefined;
2026
2037
  }>, {
2027
2038
  title: string;
2028
- trigger: string | VNode<vue.RendererNode, vue.RendererElement, {
2029
- [key: string]: any;
2030
- }>;
2031
- insert: () => void;
2032
- language: string;
2039
+ disabled: boolean;
2040
+ showToolbarName: boolean;
2033
2041
  theme: Themes;
2042
+ language: string;
2034
2043
  previewTheme: string;
2035
2044
  codeTheme: string;
2036
- disabled: boolean;
2037
- showToolbarName: boolean;
2038
2045
  onClick: (e: MouseEvent) => void;
2046
+ trigger: string | VNode<vue.RendererNode, vue.RendererElement, {
2047
+ [key: string]: any;
2048
+ }>;
2049
+ insert: () => void;
2039
2050
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2040
2051
 
2041
2052
  declare const _default$a: typeof _default$b & {
@@ -2159,22 +2170,22 @@ declare const _default$9: vue.DefineComponent<vue.ExtractPropTypes<{
2159
2170
  }>> & Readonly<{
2160
2171
  onOnChange?: ((...args: any[]) => any) | undefined;
2161
2172
  }>, {
2162
- onChange: (visible: boolean) => void;
2163
2173
  title: string;
2164
- visible: boolean;
2174
+ onChange: (visible: boolean) => void;
2175
+ disabled: boolean;
2176
+ showToolbarName: boolean;
2177
+ theme: Themes;
2178
+ language: string;
2179
+ previewTheme: string;
2180
+ codeTheme: string;
2165
2181
  trigger: string | VNode<vue.RendererNode, vue.RendererElement, {
2166
2182
  [key: string]: any;
2167
2183
  }>;
2184
+ insert: () => void;
2185
+ visible: boolean;
2168
2186
  overlay: string | VNode<vue.RendererNode, vue.RendererElement, {
2169
2187
  [key: string]: any;
2170
2188
  }>;
2171
- insert: () => void;
2172
- language: string;
2173
- theme: Themes;
2174
- previewTheme: string;
2175
- codeTheme: string;
2176
- disabled: boolean;
2177
- showToolbarName: boolean;
2178
2189
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2179
2190
 
2180
2191
  declare const _default$8: typeof _default$9 & {
@@ -2369,18 +2380,20 @@ declare const _default$7: vue.DefineComponent<vue.ExtractPropTypes<{
2369
2380
  onOnAdjust?: ((...args: any[]) => any) | undefined;
2370
2381
  }>, {
2371
2382
  title: string;
2372
- visible: boolean;
2373
- trigger: string | VNode<vue.RendererNode, vue.RendererElement, {
2374
- [key: string]: any;
2375
- }>;
2376
- insert: () => void;
2377
- language: string;
2383
+ disabled: boolean;
2384
+ showToolbarName: boolean;
2378
2385
  theme: Themes;
2386
+ class: string;
2387
+ language: string;
2379
2388
  previewTheme: string;
2389
+ style: string | CSSProperties;
2380
2390
  codeTheme: string;
2381
- disabled: boolean;
2382
- showToolbarName: boolean;
2383
2391
  onClick: () => void;
2392
+ trigger: string | VNode<vue.RendererNode, vue.RendererElement, {
2393
+ [key: string]: any;
2394
+ }>;
2395
+ insert: () => void;
2396
+ visible: boolean;
2384
2397
  onClose: () => void;
2385
2398
  onAdjust: (val: boolean) => void;
2386
2399
  modalTitle: string | VNode<vue.RendererNode, vue.RendererElement, {
@@ -2390,8 +2403,6 @@ declare const _default$7: vue.DefineComponent<vue.ExtractPropTypes<{
2390
2403
  height: string;
2391
2404
  showAdjust: boolean;
2392
2405
  isFullscreen: boolean;
2393
- class: string;
2394
- style: string | CSSProperties;
2395
2406
  showMask: boolean;
2396
2407
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2397
2408
 
@@ -2495,14 +2506,14 @@ declare const _default$5: vue.DefineComponent<vue.ExtractPropTypes<{
2495
2506
  }> | VNode<vue.RendererNode, vue.RendererElement, {
2496
2507
  [key: string]: any;
2497
2508
  }>[];
2509
+ class: string;
2510
+ style: string | CSSProperties;
2498
2511
  visible: boolean;
2499
2512
  onAdjust: (val: boolean) => void;
2500
2513
  width: string;
2501
2514
  height: string;
2502
2515
  showAdjust: boolean;
2503
2516
  isFullscreen: boolean;
2504
- class: string;
2505
- style: string | CSSProperties;
2506
2517
  showMask: boolean;
2507
2518
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2508
2519
 
@@ -2555,9 +2566,9 @@ declare const _default$3: vue.DefineComponent<vue.ExtractPropTypes<{
2555
2566
  }>> & Readonly<{
2556
2567
  onOnClick?: ((...args: any[]) => any) | undefined;
2557
2568
  }>, {
2558
- language: string;
2559
- theme: Themes;
2560
2569
  disabled: boolean;
2570
+ theme: Themes;
2571
+ language: string;
2561
2572
  onClick: (e: MouseEvent) => void;
2562
2573
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2563
2574
 
@@ -2566,49 +2577,49 @@ declare const _default$2: typeof _default$3 & {
2566
2577
  };
2567
2578
 
2568
2579
  declare const MdPreview: vue.DefineComponent<{
2569
- readonly language: string;
2580
+ readonly modelValue: string;
2570
2581
  readonly theme: Themes;
2571
- readonly previewTheme: string;
2572
- readonly codeTheme: string;
2573
2582
  readonly class: string;
2574
- readonly style: string | vue.CSSProperties;
2575
- readonly modelValue: string;
2583
+ readonly language: string;
2576
2584
  readonly showCodeRowNumber: boolean;
2585
+ readonly previewTheme: string;
2586
+ readonly style: string | vue.CSSProperties;
2577
2587
  readonly mdHeadingId: MdHeadingId;
2578
2588
  readonly sanitize: (html: string) => string;
2579
2589
  readonly noMermaid: boolean;
2580
2590
  readonly noKatex: boolean;
2591
+ readonly codeTheme: string;
2581
2592
  readonly formatCopiedText: (text: string) => string;
2582
2593
  readonly codeStyleReverse: boolean;
2583
2594
  readonly codeStyleReverseList: string[];
2584
2595
  readonly noHighlight: boolean;
2585
2596
  readonly noImgZoomIn: boolean;
2586
2597
  readonly customIcon: {
2587
- title?: {
2598
+ bold?: {
2588
2599
  component: vue.Component | vue.VNode | string;
2589
2600
  props?: {
2590
2601
  [key: string | number | symbol]: any;
2591
2602
  };
2592
2603
  } | undefined;
2593
- bold?: {
2604
+ underline?: {
2594
2605
  component: vue.Component | vue.VNode | string;
2595
2606
  props?: {
2596
2607
  [key: string | number | symbol]: any;
2597
2608
  };
2598
2609
  } | undefined;
2599
- underline?: {
2610
+ italic?: {
2600
2611
  component: vue.Component | vue.VNode | string;
2601
2612
  props?: {
2602
2613
  [key: string | number | symbol]: any;
2603
2614
  };
2604
2615
  } | undefined;
2605
- italic?: {
2616
+ "strike-through"?: {
2606
2617
  component: vue.Component | vue.VNode | string;
2607
2618
  props?: {
2608
2619
  [key: string | number | symbol]: any;
2609
2620
  };
2610
2621
  } | undefined;
2611
- "strike-through"?: {
2622
+ title?: {
2612
2623
  component: vue.Component | vue.VNode | string;
2613
2624
  props?: {
2614
2625
  [key: string | number | symbol]: any;
@@ -2801,49 +2812,49 @@ declare const MdPreview: vue.DefineComponent<{
2801
2812
  readonly id: string | undefined;
2802
2813
  readonly previewComponent: vue.Component | undefined;
2803
2814
  }, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, EditorEmits, "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "update:modelValue" | "onBlur" | "onFocus" | "onInput" | "onDrop" | "onInputBoxWidthChange" | "onRemount", vue.PublicProps, Readonly<{
2804
- readonly language: string;
2815
+ readonly modelValue: string;
2805
2816
  readonly theme: Themes;
2806
- readonly previewTheme: string;
2807
- readonly codeTheme: string;
2808
2817
  readonly class: string;
2809
- readonly style: string | vue.CSSProperties;
2810
- readonly modelValue: string;
2818
+ readonly language: string;
2811
2819
  readonly showCodeRowNumber: boolean;
2820
+ readonly previewTheme: string;
2821
+ readonly style: string | vue.CSSProperties;
2812
2822
  readonly mdHeadingId: MdHeadingId;
2813
2823
  readonly sanitize: (html: string) => string;
2814
2824
  readonly noMermaid: boolean;
2815
2825
  readonly noKatex: boolean;
2826
+ readonly codeTheme: string;
2816
2827
  readonly formatCopiedText: (text: string) => string;
2817
2828
  readonly codeStyleReverse: boolean;
2818
2829
  readonly codeStyleReverseList: string[];
2819
2830
  readonly noHighlight: boolean;
2820
2831
  readonly noImgZoomIn: boolean;
2821
2832
  readonly customIcon: {
2822
- title?: {
2833
+ bold?: {
2823
2834
  component: vue.Component | vue.VNode | string;
2824
2835
  props?: {
2825
2836
  [key: string | number | symbol]: any;
2826
2837
  };
2827
2838
  } | undefined;
2828
- bold?: {
2839
+ underline?: {
2829
2840
  component: vue.Component | vue.VNode | string;
2830
2841
  props?: {
2831
2842
  [key: string | number | symbol]: any;
2832
2843
  };
2833
2844
  } | undefined;
2834
- underline?: {
2845
+ italic?: {
2835
2846
  component: vue.Component | vue.VNode | string;
2836
2847
  props?: {
2837
2848
  [key: string | number | symbol]: any;
2838
2849
  };
2839
2850
  } | undefined;
2840
- italic?: {
2851
+ "strike-through"?: {
2841
2852
  component: vue.Component | vue.VNode | string;
2842
2853
  props?: {
2843
2854
  [key: string | number | symbol]: any;
2844
2855
  };
2845
2856
  } | undefined;
2846
- "strike-through"?: {
2857
+ title?: {
2847
2858
  component: vue.Component | vue.VNode | string;
2848
2859
  props?: {
2849
2860
  [key: string | number | symbol]: any;
@@ -3051,23 +3062,23 @@ declare const MdPreview: vue.DefineComponent<{
3051
3062
  onOnRemount?: ((...args: any[]) => any) | undefined;
3052
3063
  }>, {
3053
3064
  onChange: ChangeEvent;
3054
- language: string;
3055
- theme: Themes;
3056
- previewTheme: string;
3057
- codeTheme: string;
3058
- class: string;
3059
- style: string | vue.CSSProperties;
3060
3065
  onHtmlChanged: HtmlChangedEvent;
3061
3066
  onGetCatalog: GetCatalogEvent;
3062
3067
  onRemount: () => void;
3063
3068
  modelValue: string;
3069
+ theme: Themes;
3070
+ class: string;
3071
+ language: string;
3064
3072
  editorId: string;
3065
3073
  id: string;
3066
3074
  showCodeRowNumber: boolean;
3075
+ previewTheme: string;
3076
+ style: string | vue.CSSProperties;
3067
3077
  mdHeadingId: MdHeadingId;
3068
3078
  sanitize: (html: string) => string;
3069
3079
  noMermaid: boolean;
3070
3080
  noKatex: boolean;
3081
+ codeTheme: string;
3071
3082
  formatCopiedText: (text: string) => string;
3072
3083
  codeStyleReverse: boolean;
3073
3084
  codeStyleReverseList: string[];
@@ -3255,12 +3266,12 @@ declare const MdCatalog: vue.DefineComponent<vue.ExtractPropTypes<{
3255
3266
  onOnClick?: ((...args: any[]) => any) | undefined;
3256
3267
  onOnActive?: ((...args: any[]) => any) | undefined;
3257
3268
  }>, {
3269
+ catalogMaxDepth: number;
3258
3270
  theme: Themes;
3259
- onClick: (e: MouseEvent, t: TocItem) => void;
3260
3271
  class: string;
3261
- catalogMaxDepth: number;
3262
3272
  editorId: string;
3263
3273
  mdHeadingId: MdHeadingId;
3274
+ onClick: (e: MouseEvent, t: TocItem) => void;
3264
3275
  onActive: (heading: HeadList | undefined, activeElement: HTMLDivElement) => void;
3265
3276
  scrollElement: string | HTMLElement;
3266
3277
  offsetTop: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "md-editor-v3",
3
- "version": "7.0.0",
3
+ "version": "7.1.0-0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "vue",