@ones-editor/editor 4.0.0 → 4.0.1
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
CHANGED
|
@@ -55978,7 +55978,10 @@ ${codeText}
|
|
|
55978
55978
|
function convertTo$g(editor, blockData, doc2, type) {
|
|
55979
55979
|
const mathData = blockData.embedData;
|
|
55980
55980
|
if (type === "html") {
|
|
55981
|
-
|
|
55981
|
+
if (mathData.src) {
|
|
55982
|
+
return `<img data-embed-type="mathjax" data-uuid="mathjax:${mathData.src}" src="${editor.doc.buildResourceUrl(mathData.src, { withToken: true })}" />`;
|
|
55983
|
+
}
|
|
55984
|
+
return `<code>$$${escapeHtmlText(mathData.mathjaxText)}$$</code>`;
|
|
55982
55985
|
}
|
|
55983
55986
|
if (type === "markdown") {
|
|
55984
55987
|
return `
|
|
@@ -76931,7 +76934,8 @@ ${codeText}
|
|
|
76931
76934
|
type: "embed",
|
|
76932
76935
|
embedType: "math",
|
|
76933
76936
|
embedData: {
|
|
76934
|
-
mathjaxText: lex
|
|
76937
|
+
mathjaxText: lex,
|
|
76938
|
+
src: ""
|
|
76935
76939
|
}
|
|
76936
76940
|
}];
|
|
76937
76941
|
}
|
|
@@ -97170,7 +97174,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97170
97174
|
}
|
|
97171
97175
|
}
|
|
97172
97176
|
});
|
|
97173
|
-
editor.version = "4.0.
|
|
97177
|
+
editor.version = "4.0.1";
|
|
97174
97178
|
return editor;
|
|
97175
97179
|
}
|
|
97176
97180
|
function isDoc(doc2) {
|
|
@@ -97304,7 +97308,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97304
97308
|
OnesEditorDropTarget.register(editor);
|
|
97305
97309
|
OnesEditorTocProvider.register(editor);
|
|
97306
97310
|
OnesEditorExclusiveBlock.register(editor);
|
|
97307
|
-
editor.version = "4.0.
|
|
97311
|
+
editor.version = "4.0.1";
|
|
97308
97312
|
return editor;
|
|
97309
97313
|
}
|
|
97310
97314
|
async function showDocVersions(editor, options, serverUrl) {
|
|
@@ -97439,7 +97443,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97439
97443
|
}
|
|
97440
97444
|
}
|
|
97441
97445
|
});
|
|
97442
|
-
editor.version = "4.0.
|
|
97446
|
+
editor.version = "4.0.1";
|
|
97443
97447
|
return editor;
|
|
97444
97448
|
}
|
|
97445
97449
|
const emojis$1 = {
|