Skip to content

Commit

Permalink
fix: use text prop for code block
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-abc committed Aug 27, 2021
1 parent b9679ed commit b94a7ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderers/Code.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script>
export let lang
export let text
</script>

<pre class={lang}><code><slot></slot></code></pre>
<pre class={lang}><code>{text}</code></pre>

0 comments on commit b94a7ca

Please sign in to comment.