diff --git a/src/commands/Article.ts b/src/commands/Article.ts index b169b87d..86ce503c 100644 --- a/src/commands/Article.ts +++ b/src/commands/Article.ts @@ -203,7 +203,7 @@ export class Article { const file = parseWinPath(editor.document.fileName); - if (!file.endsWith(`.md`) && !file.endsWith(`.mdx`)) { + if (!file.endsWith(`.md`) && !file.endsWith(`.markdown`) && !file.endsWith(`.mdx`)) { return; } diff --git a/src/commands/Dashboard.ts b/src/commands/Dashboard.ts index a765d3d7..0a458346 100644 --- a/src/commands/Dashboard.ts +++ b/src/commands/Dashboard.ts @@ -548,7 +548,7 @@ export class Dashboard { if (folderInfo) { for (const folder of folderInfo) { for (const file of folder.lastModified) { - if (file.fileName.endsWith(`.md`) || file.fileName.endsWith(`.mdx`)) { + if (file.fileName.endsWith(`.md`) || file.fileName.endsWith(`.markdown`) || file.fileName.endsWith(`.mdx`)) { try { const article = ArticleHelper.getFrontMatterByPath(file.filePath); diff --git a/src/commands/Diagnostics.ts b/src/commands/Diagnostics.ts index 9e5c8e77..69093109 100644 --- a/src/commands/Diagnostics.ts +++ b/src/commands/Diagnostics.ts @@ -56,7 +56,8 @@ ${folderData.join("\n")} const mdFiles = await workspace.findFiles(join(projectStart, folder.excludeSubdir ? '/' : '**/', '*.md')); const mdxFiles = await workspace.findFiles(join(projectStart, folder.excludeSubdir ? '/' : '**/', '*.mdx')); + const markdownFiles = await workspace.findFiles(join(projectStart, folder.excludeSubdir ? '/' : '**/', '*.markdown')); - return `- Project start length: ${projectStart.length} | Search in: "${join(projectStart, folder.excludeSubdir ? '/' : '**/', '*.*')}" | mdFiles: ${mdFiles.length} | mdxFiles: ${mdxFiles.length}`; + return `- Project start length: ${projectStart.length} | Search in: "${join(projectStart, folder.excludeSubdir ? '/' : '**/', '*.*')}" | mdFiles: ${mdFiles.length} | mdxFiles: ${mdxFiles.length} | markdownFiles: ${markdownFiles.length}`; } } \ No newline at end of file diff --git a/src/commands/Folders.ts b/src/commands/Folders.ts index 480ba5d1..1b0c45ce 100644 --- a/src/commands/Folders.ts +++ b/src/commands/Folders.ts @@ -212,8 +212,9 @@ export class Folders { projectStart = projectStart.replace(/\\/g, '/'); projectStart = projectStart.startsWith('/') ? projectStart.substr(1) : projectStart; const mdFiles = await workspace.findFiles(join(projectStart, folder.excludeSubdir ? '/' : '**/', '*.md')); + const markdownFiles = await workspace.findFiles(join(projectStart, folder.excludeSubdir ? '/' : '**/', '*.markdown')); const mdxFiles = await workspace.findFiles(join(projectStart, folder.excludeSubdir ? '/' : '**/', '*.mdx')); - let files = [...mdFiles, ...mdxFiles]; + let files = [...mdFiles, ...markdownFiles, ...mdxFiles]; if (files) { let fileStats: FileInfo[] = []; diff --git a/src/panelWebView/components/FileItem.tsx b/src/panelWebView/components/FileItem.tsx index 1d2db400..e4c84613 100644 --- a/src/panelWebView/components/FileItem.tsx +++ b/src/panelWebView/components/FileItem.tsx @@ -19,7 +19,7 @@ const FileItem: React.FunctionComponent = ({ name, path }: React
  • { - (name.endsWith('.md') || name.endsWith('.mdx')) ? ( + (name.endsWith('.md') || name.endsWith('.markdown') || name.endsWith('.mdx')) ? ( ) : (