Skip to content

Commit

Permalink
components/md: Don't splat unwanted whitespace into pre tags
Browse files Browse the repository at this point in the history
This fixes an issue where unintended indentation would get added to the
start of code blocks.
  • Loading branch information
awesomekling committed Oct 31, 2024
1 parent 839849c commit c0b62ab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/md/pre.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
const props = Astro.props;
---

<pre {...props}>
<slot />
</pre>
<pre {...props}><slot /></pre>

0 comments on commit c0b62ab

Please sign in to comment.