diff --git a/apps/svelte.dev/content/docs/svelte/03-template-syntax/09-@const.md b/apps/svelte.dev/content/docs/svelte/03-template-syntax/09-@const.md index 396054d9e8..f4bde77c23 100644 --- a/apps/svelte.dev/content/docs/svelte/03-template-syntax/09-@const.md +++ b/apps/svelte.dev/content/docs/svelte/03-template-syntax/09-@const.md @@ -11,4 +11,4 @@ The `{@const ...}` tag defines a local constant. {/each} ``` -`{@const}` is only allowed as an immediate child of a block — `{#if ...}`, `{#each ...}`, `{#snippet ...}` and so on — or a . +`{@const}` is only allowed as an immediate child of a block — `{#if ...}`, `{#each ...}`, `{#snippet ...}` and so on — or a ``. diff --git a/apps/svelte.dev/content/docs/svelte/04-styling/01-styles-and-classes.md b/apps/svelte.dev/content/docs/svelte/04-styling/01-styles-and-classes.md index c552d50d0a..8bc99b658e 100644 --- a/apps/svelte.dev/content/docs/svelte/04-styling/01-styles-and-classes.md +++ b/apps/svelte.dev/content/docs/svelte/04-styling/01-styles-and-classes.md @@ -194,9 +194,9 @@ Svelte's implementation is essentially syntactic sugar for adding a wrapper elem Desugars to this: ```svelte -
+ -
+ ``` For SVG namespace, the example above desugars into using `` instead: @@ -207,7 +207,7 @@ For SVG namespace, the example above desugars into using `` instead: ``` -> [!NOTE] Since this is an extra `
` (or ``), beware that your CSS structure might accidentally target this. Be mindful of this added wrapper element when using this feature. +> [!NOTE] Since this is an extra `` (or ``), beware that your CSS structure might accidentally target this. Be mindful of this added wrapper element when using this feature. Svelte's CSS Variables support allows for easily themeable components: diff --git a/apps/svelte.dev/content/docs/svelte/98-reference/.generated/client-errors.md b/apps/svelte.dev/content/docs/svelte/98-reference/.generated/client-errors.md index 4e7016b337..d6bd276de7 100644 --- a/apps/svelte.dev/content/docs/svelte/98-reference/.generated/client-errors.md +++ b/apps/svelte.dev/content/docs/svelte/98-reference/.generated/client-errors.md @@ -125,5 +125,5 @@ Reading state that was created inside the same derived is forbidden. Consider us ### state_unsafe_mutation ``` -Updating state inside a derived or logic block expression is forbidden. If the value should not be reactive, declare it without `$state` +Updating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state` ``` diff --git a/apps/svelte.dev/content/docs/svelte/98-reference/30-runtime-errors.md b/apps/svelte.dev/content/docs/svelte/98-reference/30-runtime-errors.md index f8fc4e508b..3a8bb639e2 100644 --- a/apps/svelte.dev/content/docs/svelte/98-reference/30-runtime-errors.md +++ b/apps/svelte.dev/content/docs/svelte/98-reference/30-runtime-errors.md @@ -131,7 +131,7 @@ Reading state that was created inside the same derived is forbidden. Consider us ### state_unsafe_mutation ``` -Updating state inside a derived or logic block expression is forbidden. If the value should not be reactive, declare it without `$state` +Updating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state` ``` diff --git a/apps/svelte.dev/content/docs/svelte/98-reference/30-runtime-warnings.md b/apps/svelte.dev/content/docs/svelte/98-reference/30-runtime-warnings.md index 37da59f18a..2909035bbb 100644 --- a/apps/svelte.dev/content/docs/svelte/98-reference/30-runtime-warnings.md +++ b/apps/svelte.dev/content/docs/svelte/98-reference/30-runtime-warnings.md @@ -131,7 +131,7 @@ Reading state that was created inside the same derived is forbidden. Consider us ### state_unsafe_mutation ``` -Updating state inside a derived or logic block expression is forbidden. If the value should not be reactive, declare it without `$state` +Updating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state` ```