From 79ea95cb398a05227c7ddc363e7f6e6ee7aa66fb Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 17 Apr 2026 20:18:26 +0300 Subject: [PATCH] Apply suggestions from code review Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- apps/client/src/entities/fnote.ts | 2 +- apps/client/src/services/content_renderer_text.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); }