1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-27 22:38:11 +09:00

chore: typo

This commit is contained in:
Daniel Roe 2022-11-25 21:09:10 +00:00
parent 7d28f6ddbc
commit b6c118eb50
No known key found for this signature in database
GPG Key ID: 22D5008E4F5D9B55

View File

@ -12,11 +12,11 @@ const langMap: Record<string, string> = {
vue: 'html',
}
const hightlighted = computed(() => {
const highlighted = computed(() => {
return props.lang ? highlightCode(raw, langMap[props.lang] || props.lang as any) : raw
})
</script>
<template>
<pre class="code-block" v-html="hightlighted" />
<pre class="code-block" v-html="highlighted" />
</template>