diff --git a/components/content/ContentCode.vue b/components/content/ContentCode.vue index b0647f53..4ffc9bc7 100644 --- a/components/content/ContentCode.vue +++ b/components/content/ContentCode.vue @@ -12,11 +12,11 @@ const langMap: Record = { vue: 'html', } -const hightlighted = computed(() => { +const highlighted = computed(() => { return props.lang ? highlightCode(raw, langMap[props.lang] || props.lang as any) : raw })