We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c442bef commit 240d548Copy full SHA for 240d548
apps/svelte.dev/src/routes/blog/[slug]/+page.svelte
@@ -1,12 +1,11 @@
1
<script lang="ts">
2
import { page } from '$app/stores';
3
import { copy_code_descendants, ts_js_select } from '@sveltejs/site-kit/actions';
4
+ import { Text } from '@sveltejs/site-kit/components';
5
import { setupDocsHovers } from '@sveltejs/site-kit/docs';
6
7
let { data } = $props();
8
- let content = $state() as HTMLElement;
9
-
10
setupDocsHovers();
11
</script>
12
@@ -39,9 +38,9 @@
39
38
<time datetime={data.date}>{data.date_formatted}</time>
40
</p>
41
42
- <div class="content" bind:this={content}>
+ <Text>
43
{@html data.body}
44
- </div>
+ </Text>
45
</article>
46
</div>
47
0 commit comments