Skip to content

Commit

Permalink
fix(prose-pre): only wrap slot in pre (#2348)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Sep 27, 2023
1 parent 976cab4 commit e783efd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/runtime/components/Prose/ProsePre.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<template>
<pre :class="$props.class"><ProseCode :code="code" :language="language" :filename="filename" :highlights="highlights" :meta="meta"><slot /></ProseCode></pre>
<ProseCode :code="code" :language="language" :filename="filename" :highlights="highlights" :meta="meta">
<pre :class="$props.class" :style="style"><slot /></pre>
</ProseCode>
</template>

<script setup lang="ts">
Expand Down Expand Up @@ -27,6 +29,10 @@ defineProps({
class: {
type: String,
default: null
},
style: {
type: String,
default: null
}
})
</script>
Expand Down

0 comments on commit e783efd

Please sign in to comment.