chore: bump version (#1597)

This commit is contained in:
Himself65 authored and GitHub committed 2023-03-16 22:07:57 -04:00
1 parent 88f662e6f6
commit 953188e76b
10 files changed
+906 -859

No files matched your search

+6 -3
View File
@@ -71,9 +71,12 @@ const PreviewPage: NextPage<PreviewPageProps> = ({
pageBlockId
);
page.addBlockByFlavour('affine:paragraph', {}, frameId);
editor.clipboard.importMarkdown(text, frameId).then(() => {
page.resetHistory();
});
setTimeout(() => {
// hotfix: contentParser.importMarkdown is not working in the first render
editor.contentParser.importMarkdown(text, frameId).then(() => {
page.resetHistory();
});
}, 0);
}}
/>
<StyledToolWrapper>
+4 -1
View File
@@ -49,6 +49,9 @@ export function _initPageWithDemoMarkdown(
page.addBlockByFlavour('affine:surface', {}, null);
const frameId = page.addBlockByFlavour('affine:frame', {}, pageBlockId);
page.addBlockByFlavour('affine:paragraph', {}, frameId);
editor.clipboard.importMarkdown(demoText, frameId);
setTimeout(() => {
// hotfix: contentParser.importMarkdown is not working in the first render
editor.contentParser.importMarkdown(demoText, frameId);
}, 0);
page.workspace.setPageMeta(page.id, { demoTitle });
}