pull/116/head
Daniel Roe 2022-11-25 21:09:10 +00:00
rodzic 7d28f6ddbc
commit b6c118eb50
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 22D5008E4F5D9B55
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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>