@lvce-editor/api 9.37.1 → 9.37.2

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.
@@ -1,7 +1,7 @@
1
- import { RendererWorker } from '@lvce-editor/rpc-registry';
1
+ import { executeCommand } from "../ExecuteCommand/ExecuteCommand.js";
2
2
  import { sanitizeMarkdownVirtualDom } from "./SanitizeMarkdownVirtualDom.js";
3
3
  export const markdownToVirtualDom = async (markdown) => {
4
- const html = await RendererWorker.invoke('Markdown.renderMarkdown', markdown);
5
- const nodes = (await RendererWorker.invoke('Markdown.getVirtualDom', html));
4
+ const html = (await executeCommand('Markdown.renderMarkdown', markdown));
5
+ const nodes = (await executeCommand('Markdown.getVirtualDom', html));
6
6
  return sanitizeMarkdownVirtualDom(nodes);
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/api",
3
- "version": "9.37.1",
3
+ "version": "9.37.2",
4
4
  "description": "Tree-shakeable extension API for Lvce Editor extensions.",
5
5
  "keywords": [
6
6
  "lvce-editor",