@8btc/mditor 0.0.29 → 0.0.30
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 +1 -1
- package/dist/index.css +2 -2
- package/dist/index.js +5 -5
- package/dist/index.min.js +1 -1
- package/dist/method.js +5 -5
- package/dist/method.min.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/ts/constants.ts +1 -1
- package/src/ts/markdown/mathRender.ts +1 -1
package/README.md
CHANGED
|
@@ -279,7 +279,7 @@ new Vditor("vditor", {
|
|
|
279
279
|
|
|
280
280
|
| | 说明 | 默认值 |
|
|
281
281
|
| -------------- | ----------------------------------- | ------- |
|
|
282
|
-
| inlineDigit | 内联数学公式起始 $
|
|
282
|
+
| inlineDigit | 内联数学公式起始 $ 后是否允许数字(如 $0$) | true |
|
|
283
283
|
| macros | 使用 MathJax 渲染时传入的宏定义 | {} |
|
|
284
284
|
| engine | 数学公式渲染引擎:KaTeX, MathJax | 'KaTeX' |
|
|
285
285
|
| mathJaxOptions | 数学公式渲染引擎为 MathJax 时的参数 | - |
|
package/dist/index.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Vditor v0.0.
|
|
2
|
+
* Vditor v0.0.30 - 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.
|
|
28
|
+
* Vditor v0.0.30 - 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.
|
|
2
|
+
* Vditor v0.0.30 - 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.
|
|
2926
|
+
var _VDITOR_VERSION = "0.0.30";
|
|
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.
|
|
3228
|
+
Constants.CDN = "https://webcdn.wujieai.com/vditor@".concat("0.0.30");
|
|
3229
3229
|
Constants.MARKDOWN_OPTIONS = {
|
|
3230
3230
|
autoSpace: false,
|
|
3231
3231
|
gfmAutoLink: true,
|
|
@@ -3251,7 +3251,7 @@ var Constants = /** @class */ (function () {
|
|
|
3251
3251
|
};
|
|
3252
3252
|
Constants.MATH_OPTIONS = {
|
|
3253
3253
|
engine: "MathJax",
|
|
3254
|
-
inlineDigit:
|
|
3254
|
+
inlineDigit: true,
|
|
3255
3255
|
// 默认宏:补充常见但部分引擎未内置的积分符号
|
|
3256
3256
|
// oiint: 关闭曲面积分(∯),在 MathJax 下通过 unicode 宏渲染
|
|
3257
3257
|
// 说明:KaTeX 若不支持 \unicode,将退化为普通 \iint(由 mathRender 保证)
|
|
@@ -5489,7 +5489,7 @@ var mathRender = function (element, options) {
|
|
|
5489
5489
|
cdn: _constants__WEBPACK_IMPORTED_MODULE_0__/* .Constants.CDN */ .g.CDN,
|
|
5490
5490
|
math: {
|
|
5491
5491
|
engine: "MathJax",
|
|
5492
|
-
inlineDigit:
|
|
5492
|
+
inlineDigit: true,
|
|
5493
5493
|
macros: {},
|
|
5494
5494
|
},
|
|
5495
5495
|
};
|