mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
fix: windows rust cache (#1710)
This commit is contained in:
@@ -51,6 +51,15 @@ export function _initPageWithDemoMarkdown(
|
||||
const frameId = page.addBlock('affine:frame', {}, pageBlockId);
|
||||
page.addBlock('affine:paragraph', {}, frameId);
|
||||
const contentParser = new ContentParser(page);
|
||||
contentParser.importMarkdown(demoText, frameId);
|
||||
contentParser.importMarkdown(demoText, frameId).then(() => {
|
||||
document.dispatchEvent(
|
||||
new CustomEvent('markdown:imported', {
|
||||
detail: {
|
||||
workspaceId: page.workspace.id,
|
||||
pageId: page.id,
|
||||
},
|
||||
})
|
||||
);
|
||||
});
|
||||
page.workspace.setPageMeta(page.id, { demoTitle });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user