Skip to content

Commit 8289afd

Browse files
committed
Merge branch 'main' into eb-garamond-headers
2 parents c2a4c71 + 530ace6 commit 8289afd

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

apps/svelte.dev/src/routes/blog/[slug]/+page.svelte

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<script lang="ts">
22
import { page } from '$app/stores';
33
import { copy_code_descendants, ts_js_select } from '@sveltejs/site-kit/actions';
4+
import { Text } from '@sveltejs/site-kit/components';
45
import { setupDocsHovers } from '@sveltejs/site-kit/docs';
56
67
let { data } = $props();
78
8-
let content = $state() as HTMLElement;
9-
109
setupDocsHovers();
1110
</script>
1211

@@ -39,9 +38,9 @@
3938
<time datetime={data.date}>{data.date_formatted}</time>
4039
</p>
4140

42-
<div class="content" bind:this={content}>
41+
<Text>
4342
{@html data.body}
44-
</div>
43+
</Text>
4544
</article>
4645
</div>
4746

apps/svelte.dev/src/routes/tutorial/[slug]/Sidebar.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { createEventDispatcher } from 'svelte';
33
import Modal from '$lib/components/Modal.svelte';
44
import Menu from './Menu.svelte';
5+
import { Text } from '@sveltejs/site-kit/components';
56
67
/** @type {import('$lib/tutorial').PartStub[]} */
78
export let index;
@@ -62,7 +63,9 @@
6263
}
6364
}}
6465
>
65-
{@html exercise.html}
66+
<Text>
67+
{@html exercise.html}
68+
</Text>
6669
</div>
6770

6871
{#if exercise.next}

0 commit comments

Comments
 (0)