@ones-editor/editor 5.0.0 → 5.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
|
@@ -55989,7 +55989,10 @@ ${codeText}
|
|
|
55989
55989
|
function convertTo$g(editor, blockData, doc2, type) {
|
|
55990
55990
|
const mathData = blockData.embedData;
|
|
55991
55991
|
if (type === "html") {
|
|
55992
|
-
|
|
55992
|
+
if (mathData.src) {
|
|
55993
|
+
return `<img data-embed-type="mathjax" data-uuid="mathjax:${mathData.src}" src="${editor.doc.buildResourceUrl(mathData.src, { withToken: true })}" />`;
|
|
55994
|
+
}
|
|
55995
|
+
return `<code>$$${escapeHtmlText(mathData.mathjaxText)}$$</code>`;
|
|
55993
55996
|
}
|
|
55994
55997
|
if (type === "markdown") {
|
|
55995
55998
|
return `
|
|
@@ -77025,7 +77028,8 @@ ${codeText}
|
|
|
77025
77028
|
type: "embed",
|
|
77026
77029
|
embedType: "math",
|
|
77027
77030
|
embedData: {
|
|
77028
|
-
mathjaxText: lex
|
|
77031
|
+
mathjaxText: lex,
|
|
77032
|
+
src: ""
|
|
77029
77033
|
}
|
|
77030
77034
|
}];
|
|
77031
77035
|
}
|
|
@@ -97489,7 +97493,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97489
97493
|
}
|
|
97490
97494
|
}
|
|
97491
97495
|
});
|
|
97492
|
-
editor.version = "5.0.
|
|
97496
|
+
editor.version = "5.0.1";
|
|
97493
97497
|
return editor;
|
|
97494
97498
|
}
|
|
97495
97499
|
function isDoc(doc2) {
|
|
@@ -97623,7 +97627,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97623
97627
|
OnesEditorDropTarget.register(editor);
|
|
97624
97628
|
OnesEditorTocProvider.register(editor);
|
|
97625
97629
|
OnesEditorExclusiveBlock.register(editor);
|
|
97626
|
-
editor.version = "5.0.
|
|
97630
|
+
editor.version = "5.0.1";
|
|
97627
97631
|
return editor;
|
|
97628
97632
|
}
|
|
97629
97633
|
async function showDocVersions(editor, options, serverUrl) {
|
|
@@ -97758,7 +97762,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97758
97762
|
}
|
|
97759
97763
|
}
|
|
97760
97764
|
});
|
|
97761
|
-
editor.version = "5.0.
|
|
97765
|
+
editor.version = "5.0.1";
|
|
97762
97766
|
return editor;
|
|
97763
97767
|
}
|
|
97764
97768
|
const emojis$1 = {
|