We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6df396c commit d523a99Copy full SHA for d523a99
src/commands/posts-list/save-post.ts
@@ -149,6 +149,7 @@ export const savePostToCnblogs = async (input: Post | PostTreeItem | PostEditDto
149
await saveFilePendingChanges(localFilePath);
150
post.postBody = (await workspace.fs.readFile(Uri.file(localFilePath))).toString();
151
post.title = await PostTitleSanitizer.unSanitize(post);
152
+ post.isMarkdown = path.extname(localFilePath).endsWith('md') || post.isMarkdown;
153
154
if (!validatePost(post)) return false;
155
0 commit comments