@ones-editor/editor 2.9.8-beta.62 → 2.9.8-beta.63

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
@@ -78028,6 +78028,24 @@ ${docStr}
78028
78028
  }
78029
78029
  });
78030
78030
  }
78031
+ function superScript(ts) {
78032
+ ts.addRule("super", {
78033
+ filter: ["super", "sup"],
78034
+ replacement(content, node) {
78035
+ if (!content.trim())
78036
+ return "";
78037
+ return `<sup>${content}</sup>`;
78038
+ }
78039
+ });
78040
+ ts.addRule("sub", {
78041
+ filter: ["sub"],
78042
+ replacement(content, node) {
78043
+ if (!content.trim())
78044
+ return "";
78045
+ return `<sub>${content}</sub>`;
78046
+ }
78047
+ });
78048
+ }
78031
78049
  const logger$P = getLogger("html-to-doc");
78032
78050
  const turndownService = new TurndownService();
78033
78051
  turndownService.use(codeListToCode);
@@ -78043,6 +78061,7 @@ ${docStr}
78043
78061
  turndownService.use(figcaptionToTextBlock);
78044
78062
  turndownService.use(textColor);
78045
78063
  turndownService.use(fontSize);
78064
+ turndownService.use(superScript);
78046
78065
  function htmlToBlocks$1(html, options) {
78047
78066
  const subDoc = processedHtmlToDocByMarkdown(html, options);
78048
78067
  if (!subDoc) {
@@ -95882,7 +95901,7 @@ ${JSON.stringify(error2, null, 2)}`);
95882
95901
  }
95883
95902
  }
95884
95903
  });
95885
- editor.version = "2.9.8-beta.62";
95904
+ editor.version = "2.9.8-beta.63";
95886
95905
  return editor;
95887
95906
  }
95888
95907
  function isDoc(doc2) {
@@ -96016,7 +96035,7 @@ ${JSON.stringify(error2, null, 2)}`);
96016
96035
  OnesEditorDropTarget.register(editor);
96017
96036
  OnesEditorTocProvider.register(editor);
96018
96037
  OnesEditorExclusiveBlock.register(editor);
96019
- editor.version = "2.9.8-beta.62";
96038
+ editor.version = "2.9.8-beta.63";
96020
96039
  return editor;
96021
96040
  }
96022
96041
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "2.9.8-beta.62",
3
+ "version": "2.9.8-beta.63",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {