File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
apps/svelte.dev/src/routes Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import { page } from ' $app/stores' ;
3
3
import { copy_code_descendants , ts_js_select } from ' @sveltejs/site-kit/actions' ;
4
+ import { Text } from ' @sveltejs/site-kit/components' ;
4
5
import { setupDocsHovers } from ' @sveltejs/site-kit/docs' ;
5
6
6
7
let { data } = $props ();
7
8
8
- let content = $state () as HTMLElement ;
9
-
10
9
setupDocsHovers ();
11
10
</script >
12
11
39
38
<time datetime ={data .date }>{data .date_formatted }</time >
40
39
</p >
41
40
42
- <div class = "content" bind:this ={ content } >
41
+ <Text >
43
42
{@html data .body }
44
- </div >
43
+ </Text >
45
44
</article >
46
45
</div >
47
46
Original file line number Diff line number Diff line change 2
2
import { createEventDispatcher } from ' svelte' ;
3
3
import Modal from ' $lib/components/Modal.svelte' ;
4
4
import Menu from ' ./Menu.svelte' ;
5
+ import { Text } from ' @sveltejs/site-kit/components' ;
5
6
6
7
/** @type {import('$lib/tutorial').PartStub[]} */
7
8
export let index;
62
63
}
63
64
}}
64
65
>
65
- {@html exercise .html }
66
+ <Text >
67
+ {@html exercise .html }
68
+ </Text >
66
69
</div >
67
70
68
71
{#if exercise .next }
You can’t perform that action at this time.
0 commit comments