Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(book/table): display attachment JSON
Elian Doran9c137a1c48b3
diff --git a/apps/client/src/services/content_renderer.ts b/apps/client/src/services/content_renderer.tsindex 08ed561ffc..12c8a21f47 100644--- a/apps/client/src/services/content_renderer.ts+++ b/apps/client/src/services/content_renderer.ts@@ -301,7 +301,7 @@ function getRenderingType(entity: FNote | FAttachment) {if (type === "file" && mime === "application/pdf") {type = "pdf";- } else if (type === "file" && mime && CODE_MIME_TYPES.has(mime)) {+ } else if ((type === "file" || type === "viewConfig") && mime && CODE_MIME_TYPES.has(mime)) {type = "code";} else if (type === "file" && mime && mime.startsWith("audio/")) {type = "audio";