From 479d76d763cecaaa12589dc8b2da80fba3009abd Mon Sep 17 00:00:00 2001 From: naskya Date: Thu, 13 Jul 2023 21:45:54 +0000 Subject: [PATCH] Fallback language for code MFM should be plaintext --- packages/client/src/components/MkCode.core.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/MkCode.core.vue b/packages/client/src/components/MkCode.core.vue index 579c6cf1ec..00cded2832 100644 --- a/packages/client/src/components/MkCode.core.vue +++ b/packages/client/src/components/MkCode.core.vue @@ -18,7 +18,7 @@ const props = defineProps<{ }>(); const prismLang = computed(() => - Prism.languages[props.lang] ? props.lang : "js", + Prism.languages[props.lang] ? props.lang : "plaintext", ); const html = computed(() => Prism.highlight(