md: add max-w to paragraphs

This commit is contained in:
Xylight committed 2024-08-05 12:42:41 -07:00
1 parent 5129cb36ae
commit 0bd9631fc0
3 files changed
+16 -2

No files matched your search

@@ -1,3 +1,13 @@
<p class="leading-[1.5]">
<script>
import { options } from '../Markdown.svelte'
</script>
<p class="leading-[1.5] {options.inline ? '' : 'max-w'}">
<slot />
</p>
<style>
.max-w {
max-width: 80ch;
}
</style>