@wangeditor-next/plugin-formula 0.0.12-beta.4 → 0.0.12-beta.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.
- package/dist/index.js +1 -6
- package/dist/index.mjs +1 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -104,8 +104,6 @@
|
|
104
104
|
Object.setPrototypeOf(HTMLElement, BuiltInHTMLElement);
|
105
105
|
}());
|
106
106
|
|
107
|
-
var katexStyleContent = undefined;
|
108
|
-
|
109
107
|
/**
|
110
108
|
* @description 注册自定义 elem
|
111
109
|
* @author wangfupeng
|
@@ -116,9 +114,6 @@
|
|
116
114
|
var _this = _super.call(this) || this;
|
117
115
|
var shadow = _this.attachShadow({ mode: 'open' });
|
118
116
|
var document = shadow.ownerDocument;
|
119
|
-
var style = document.createElement('style');
|
120
|
-
style.innerHTML = katexStyleContent; // 加载 css 文本
|
121
|
-
shadow.appendChild(style);
|
122
117
|
var span = document.createElement('span');
|
123
118
|
span.style.display = 'inline-block';
|
124
119
|
shadow.appendChild(span);
|
@@ -156,7 +151,7 @@
|
|
156
151
|
WangEditorFormulaCard.prototype.render = function (value) {
|
157
152
|
katex.render(value, this.span, {
|
158
153
|
throwOnError: false,
|
159
|
-
|
154
|
+
output: 'mathml',
|
160
155
|
});
|
161
156
|
};
|
162
157
|
return WangEditorFormulaCard;
|
package/dist/index.mjs
CHANGED
@@ -102,8 +102,6 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
102
102
|
Object.setPrototypeOf(HTMLElement, BuiltInHTMLElement);
|
103
103
|
}());
|
104
104
|
|
105
|
-
var katexStyleContent = undefined;
|
106
|
-
|
107
105
|
/**
|
108
106
|
* @description 注册自定义 elem
|
109
107
|
* @author wangfupeng
|
@@ -114,9 +112,6 @@ var WangEditorFormulaCard = /** @class */ (function (_super) {
|
|
114
112
|
var _this = _super.call(this) || this;
|
115
113
|
var shadow = _this.attachShadow({ mode: 'open' });
|
116
114
|
var document = shadow.ownerDocument;
|
117
|
-
var style = document.createElement('style');
|
118
|
-
style.innerHTML = katexStyleContent; // 加载 css 文本
|
119
|
-
shadow.appendChild(style);
|
120
115
|
var span = document.createElement('span');
|
121
116
|
span.style.display = 'inline-block';
|
122
117
|
shadow.appendChild(span);
|
@@ -154,7 +149,7 @@ var WangEditorFormulaCard = /** @class */ (function (_super) {
|
|
154
149
|
WangEditorFormulaCard.prototype.render = function (value) {
|
155
150
|
katex.render(value, this.span, {
|
156
151
|
throwOnError: false,
|
157
|
-
|
152
|
+
output: 'mathml',
|
158
153
|
});
|
159
154
|
};
|
160
155
|
return WangEditorFormulaCard;
|