@8btc/mditor 0.0.39 → 0.0.41

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/dist/index.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vditor v0.0.39 - A markdown editor written in TypeScript.
2
+ * Vditor v0.0.41 - A markdown editor written in TypeScript.
3
3
  *
4
4
  * MIT License
5
5
  *
@@ -25,7 +25,7 @@
25
25
  *
26
26
  */
27
27
  /*!
28
- * Vditor v0.0.39 - A markdown editor written in TypeScript.
28
+ * Vditor v0.0.41 - A markdown editor written in TypeScript.
29
29
  *
30
30
  * MIT License
31
31
  *
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vditor v0.0.39 - A markdown editor written in TypeScript.
2
+ * Vditor v0.0.41 - A markdown editor written in TypeScript.
3
3
  *
4
4
  * MIT License
5
5
  *
@@ -2923,7 +2923,7 @@ var Vditor = /** @class */ (function () {
2923
2923
  /* harmony export */ "H": () => (/* binding */ _VDITOR_VERSION),
2924
2924
  /* harmony export */ "g": () => (/* binding */ Constants)
2925
2925
  /* harmony export */ });
2926
- var _VDITOR_VERSION = "0.0.39";
2926
+ var _VDITOR_VERSION = "0.0.41";
2927
2927
 
2928
2928
  var Constants = /** @class */ (function () {
2929
2929
  function Constants() {
@@ -3225,7 +3225,7 @@ var Constants = /** @class */ (function () {
3225
3225
  "c#",
3226
3226
  "bat",
3227
3227
  ];
3228
- Constants.CDN = "https://webcdn.wujieai.com/vditor@".concat("0.0.39");
3228
+ Constants.CDN = "https://webcdn.wujieai.com/vditor@".concat("0.0.41");
3229
3229
  Constants.MARKDOWN_OPTIONS = {
3230
3230
  autoSpace: false,
3231
3231
  gfmAutoLink: true,
@@ -3252,11 +3252,49 @@ var Constants = /** @class */ (function () {
3252
3252
  Constants.MATH_OPTIONS = {
3253
3253
  engine: "MathJax",
3254
3254
  inlineDigit: true,
3255
- // 默认宏:补充常见但部分引擎未内置的积分符号
3255
+ // 默认宏:补充常见但部分引擎未内置的符号/算子
3256
3256
  // oiint: 关闭曲面积分(∯),在 MathJax 下通过 unicode 宏渲染
3257
3257
  // 说明:KaTeX 若不支持 \unicode,将退化为普通 \iint(由 mathRender 保证)
3258
+ // 以下算子使用 \operatorname / \operatorname* 统一排版为直立体
3258
3259
  macros: {
3259
3260
  oiint: "\\unicode{x222F}",
3261
+ // 常用数系
3262
+ N: "\\mathbb{N}",
3263
+ Z: "\\mathbb{Z}",
3264
+ Q: "\\mathbb{Q}",
3265
+ R: "\\mathbb{R}",
3266
+ C: "\\mathbb{C}",
3267
+ // 双曲函数
3268
+ sech: "\\operatorname{sech}",
3269
+ csch: "\\operatorname{csch}",
3270
+ coth: "\\operatorname{coth}",
3271
+ // 常见优化 / 线代算子
3272
+ argmin: "\\operatorname*{argmin}",
3273
+ argmax: "\\operatorname*{argmax}",
3274
+ rank: "\\operatorname{rank}",
3275
+ diag: "\\operatorname{diag}",
3276
+ tr: "\\operatorname{tr}",
3277
+ // 概率统计
3278
+ Var: "\\operatorname{Var}",
3279
+ Cov: "\\operatorname{Cov}",
3280
+ Std: "\\operatorname{Std}",
3281
+ E: "\\mathbb{E}",
3282
+ Pr: "\\mathbb{P}",
3283
+ Normal: "\\mathcal{N}",
3284
+ Bern: "\\operatorname{Bern}",
3285
+ Poiss: "\\operatorname{Poiss}",
3286
+ iid: "\\stackrel{\\text{i.i.d.}}{\\sim}",
3287
+ indep: "\\perp\\!\\!\\!\\perp",
3288
+ // 其他常见记号
3289
+ sgn: "\\operatorname{sgn}",
3290
+ supp: "\\operatorname{supp}",
3291
+ Span: "\\operatorname{span}",
3292
+ ker: "\\operatorname{ker}",
3293
+ im: "\\operatorname{im}",
3294
+ spec: "\\operatorname{spec}",
3295
+ // 逻辑
3296
+ implies: "\\Rightarrow",
3297
+ iff: "\\Leftrightarrow",
3260
3298
  },
3261
3299
  };
3262
3300
  Constants.THEME_OPTIONS = {