We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29081ee commit 26365a4Copy full SHA for 26365a4
1 file changed
web/src/App.svelte
@@ -686,8 +686,11 @@
686
687
rawMarkdown = init.markdown ?? '';
688
structure = init.structure ?? emptyPlanStructure();
689
- if (init.filePath && detectFileType(init.filePath) === 'markdown' && typeof init.markdown === 'string') {
690
- markdownCacheByPath.set(init.filePath, init.markdown);
+ const initialMarkdown = typeof init.markdown === 'string' && init.markdown.length > 0
+ ? init.markdown
691
+ : null;
692
+ if (init.filePath && detectFileType(init.filePath) === 'markdown' && initialMarkdown !== null) {
693
+ markdownCacheByPath.set(init.filePath, initialMarkdown);
694
if (typeof init.contentMtimeMs === 'number') {
695
loadedMtimeByPath.set(init.filePath, init.contentMtimeMs);
696
}
0 commit comments