Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: improving md removal

Ilian Sapundshiev4ab72db3eb40
diff --git a/app/perspectives/grid-perspective/components/CellContent.tsx b/app/perspectives/grid-perspective/components/CellContent.tsx
index d22a35b27..c2e516006 100644
--- a/app/perspectives/grid-perspective/components/CellContent.tsx
+++ b/app/perspectives/grid-perspective/components/CellContent.tsx
@@ -103,12 +103,12 @@ const CellContent = (props: Props) => {
);
let { description } = fsEntry;
+
+ description = removeMarkDown(description);
if (description && description.length > maxDescriptionPreviewLength) {
description = description.substr(0, maxDescriptionPreviewLength) + '...';
}
- description = removeMarkDown(description);
-
if (description && layoutType === 'row' && fsEntry.isFile) {
description = ' | ' + description;
}