From 5269c45969da64f76f83d6cf3642286a8fcb37db Mon Sep 17 00:00:00 2001 From: Rowan Cockett Date: Tue, 14 Mar 2023 21:50:22 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20widgets=20so=20they=20don'?= =?UTF-8?q?t=20render=20as=20text?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See #109 --- src/inlineExpression.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inlineExpression.tsx b/src/inlineExpression.tsx index ee5b7da..55d92f6 100644 --- a/src/inlineExpression.tsx +++ b/src/inlineExpression.tsx @@ -171,8 +171,8 @@ export function InlineRenderer({ value }: { value?: string }): JSX.Element { } // Explicitly render text/plain - const preferredMimeType = rendermime.preferredMimeType(mimeBundle ?? {}); - if (preferredMimeType === 'text/plain') { + const preferred = rendermime.preferredMimeType(mimeBundle ?? {}, 'any'); + if (preferred === 'text/plain') { return ; } // Explicitly render errors