add some styling

This commit is contained in:
Philipp Kühn
2021-02-02 23:11:52 +01:00
parent fb7c13e066
commit c223f18887
5 changed files with 142 additions and 39 deletions

View File

@@ -1,5 +1,5 @@
<template>
<pre :class="`language-${language}`" :data-line="highlight"><code :class="`language-${language}`">{{ code }}</code></pre>
<pre :class="`language-${language}`" :data-line="highlight"><code :class="`language-${language}`"><slot /></code></pre>
</template>
<script>
@@ -14,11 +14,6 @@ export default {
type: String,
},
code: {
default: null,
type: String,
},
highlight: {
type: String,
default: null,