Skip to content

Build your personal knowledge base with Trilium Notes

Apply suggestions from code review

Elian Doran79ea95cb398a
diff --git a/apps/client/src/entities/fnote.ts b/apps/client/src/entities/fnote.ts
index 6f72e68def..b371372d9c 100644
--- a/apps/client/src/entities/fnote.ts
+++ b/apps/client/src/entities/fnote.ts
@@ -1070,7 +1070,7 @@ export default class FNote {
}
isMarkdown() {
- return this.type === "code" && (this.mime === "text/x-markdown" || this.mime === "text/x-gfm");
+ return this.type === "code" && (this.mime === "text/markdown" || this.mime === "text/x-markdown" || this.mime === "text/x-gfm");
}
isTriliumScript() {
diff --git a/apps/client/src/services/content_renderer_text.ts b/apps/client/src/services/content_renderer_text.ts
index 6dcdc37688..dd8178708d 100644
--- a/apps/client/src/services/content_renderer_text.ts
+++ b/apps/client/src/services/content_renderer_text.ts
@@ -193,7 +193,7 @@ export async function applyInlineMermaid(container: HTMLDivElement) {
cache.set(source, svg);
}
} catch (e) {
- console.log(e);
+ console.error(e);
} finally {
offscreen.remove();
}