Skip to content

Commit af5204a

Browse files
authored
docs: fix < and > rendering in search results (#10284)
1 parent 9d0f7d7 commit af5204a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

documentation/docs/02-template-syntax/01-svelte-components.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ All three sections — script, styles and markup — are optional.
1818
</style>
1919
```
2020

21-
## &lt;script&gt;
21+
## `<script>`
2222

2323
A `<script>` block contains JavaScript that runs when a component instance is created. Variables declared (or imported) at the top level are 'visible' from the component's markup. There are four additional rules:
2424

@@ -250,7 +250,7 @@ You can create your own stores without relying on [`svelte/store`](/docs/svelte-
250250

251251
For interoperability with RxJS Observables, the `.subscribe` method is also allowed to return an object with an `.unsubscribe` method, rather than return the unsubscription function directly. Note however that unless `.subscribe` synchronously calls the subscription (which is not required by the Observable spec), Svelte will see the value of the store as `undefined` until it does.
252252

253-
## &lt;script context="module"&gt;
253+
## `<script context="module">`
254254

255255
A `<script>` tag with a `context="module"` attribute runs once when the module first evaluates, rather than for each component instance. Values declared in this block are accessible from a regular `<script>` (and the component markup) but not vice versa.
256256

@@ -277,7 +277,7 @@ You cannot `export default`, since the default export is the component itself.
277277
</script>
278278
```
279279

280-
## &lt;style&gt;
280+
## `<style>`
281281

282282
CSS inside a `<style>` block will be scoped to that component.
283283

0 commit comments

Comments
 (0)