mirror of
https://github.com/zadam/trilium.git
synced 2026-05-06 20:56:26 +02:00
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:
@@ -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() {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user