Fallback language for code MFM should be plaintext
This commit is contained in:
parent
db1edca84e
commit
479d76d763
|
@ -18,7 +18,7 @@ const props = defineProps<{
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const prismLang = computed(() =>
|
const prismLang = computed(() =>
|
||||||
Prism.languages[props.lang] ? props.lang : "js",
|
Prism.languages[props.lang] ? props.lang : "plaintext",
|
||||||
);
|
);
|
||||||
const html = computed(() =>
|
const html = computed(() =>
|
||||||
Prism.highlight(
|
Prism.highlight(
|
||||||
|
|
Loading…
Reference in New Issue