@ones-editor/editor 3.1.0 → 3.1.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
|
@@ -55918,7 +55918,10 @@ ${codeText}
|
|
|
55918
55918
|
function convertTo$g(editor, blockData, doc2, type) {
|
|
55919
55919
|
const mathData = blockData.embedData;
|
|
55920
55920
|
if (type === "html") {
|
|
55921
|
-
|
|
55921
|
+
if (mathData.src) {
|
|
55922
|
+
return `<img data-embed-type="mathjax" data-uuid="mathjax:${mathData.src}" src="${editor.doc.buildResourceUrl(mathData.src, { withToken: true })}" />`;
|
|
55923
|
+
}
|
|
55924
|
+
return `<code>$$${escapeHtmlText(mathData.mathjaxText)}$$</code>`;
|
|
55922
55925
|
}
|
|
55923
55926
|
if (type === "markdown") {
|
|
55924
55927
|
return `
|
|
@@ -76861,7 +76864,8 @@ ${codeText}
|
|
|
76861
76864
|
type: "embed",
|
|
76862
76865
|
embedType: "math",
|
|
76863
76866
|
embedData: {
|
|
76864
|
-
mathjaxText: lex
|
|
76867
|
+
mathjaxText: lex,
|
|
76868
|
+
src: ""
|
|
76865
76869
|
}
|
|
76866
76870
|
}];
|
|
76867
76871
|
}
|
|
@@ -97067,7 +97071,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97067
97071
|
}
|
|
97068
97072
|
}
|
|
97069
97073
|
});
|
|
97070
|
-
editor.version = "3.1.
|
|
97074
|
+
editor.version = "3.1.1";
|
|
97071
97075
|
return editor;
|
|
97072
97076
|
}
|
|
97073
97077
|
function isDoc(doc2) {
|
|
@@ -97201,7 +97205,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97201
97205
|
OnesEditorDropTarget.register(editor);
|
|
97202
97206
|
OnesEditorTocProvider.register(editor);
|
|
97203
97207
|
OnesEditorExclusiveBlock.register(editor);
|
|
97204
|
-
editor.version = "3.1.
|
|
97208
|
+
editor.version = "3.1.1";
|
|
97205
97209
|
return editor;
|
|
97206
97210
|
}
|
|
97207
97211
|
async function showDocVersions(editor, options, serverUrl) {
|