#188 - support for markdown file extension added

This commit is contained in:
Elio Struyf
2021-11-25 15:20:19 +01:00
parent b7d4e547a1
commit 81fa0a7d0f
5 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ const FileItem: React.FunctionComponent<IFileItemProps> = ({ name, path }: React
<li className={`file_list__items__item`}
onClick={openFile}>
{
(name.endsWith('.md') || name.endsWith('.mdx')) ? (
(name.endsWith('.md') || name.endsWith('.markdown') || name.endsWith('.mdx')) ? (
<MarkdownIcon />
) : (
<FileIcon />