forked from Mirrors/elk
chore: typo
This commit is contained in:
parent
7d28f6ddbc
commit
b6c118eb50
1 changed files with 2 additions and 2 deletions
|
@ -12,11 +12,11 @@ const langMap: Record<string, string> = {
|
||||||
vue: 'html',
|
vue: 'html',
|
||||||
}
|
}
|
||||||
|
|
||||||
const hightlighted = computed(() => {
|
const highlighted = computed(() => {
|
||||||
return props.lang ? highlightCode(raw, langMap[props.lang] || props.lang as any) : raw
|
return props.lang ? highlightCode(raw, langMap[props.lang] || props.lang as any) : raw
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<pre class="code-block" v-html="hightlighted" />
|
<pre class="code-block" v-html="highlighted" />
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in a new issue