You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/content/docs/02-template-syntax.md
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,27 @@ Text can also contain JavaScript expressions:
111
111
```
112
112
113
113
114
+
### Comments
115
+
116
+
---
117
+
118
+
You can use HTML comments inside components.
119
+
120
+
```html
121
+
<!-- this is a comment! -->
122
+
<h1>Hello world</h1>
123
+
```
124
+
125
+
---
126
+
127
+
Comments beginning with `svelte-ignore` disable warnings for the next block of markup. Usually these are accessibility warnings; make sure that you're disabling them for a good reason.
0 commit comments