diff --git a/src/public/app/services/content_renderer.ts b/src/public/app/services/content_renderer.ts index 2ff796b4c..3f5115669 100644 --- a/src/public/app/services/content_renderer.ts +++ b/src/public/app/services/content_renderer.ts @@ -22,6 +22,10 @@ interface Options { imageHasZoom?: boolean; } +const CODE_MIME_TYPES = new Set([ + "application/json" +]); + async function getRenderedContent(this: {} | { ctx: string }, entity: FNote, options: Options = {}) { options = Object.assign({ tooltip: false @@ -31,6 +35,7 @@ async function getRenderedContent(this: {} | { ctx: string }, entity: FNote, opt // attachment supports only image and file/pdf/audio/video const $renderedContent = $('