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>
This commit is contained in:
Elian Doran
2026-04-17 20:18:26 +03:00
committed by GitHub
parent 84bc385bab
commit 79ea95cb39
2 changed files with 2 additions and 2 deletions

View File

@@ -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() {

View File

@@ -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();
}