Skip to content

Commit cf9df23

Browse files
committed
docs: use warn block syntax
1 parent 8d32b0e commit cf9df23

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,12 @@ CSS StyleSheets can also be externally linked from a Content Delivery Network (C
103103
**HTML**
104104

105105
```html
106-
<!doctype html>
107-
<html lang="en">
108-
<head>
109-
<link
110-
rel="stylesheet"
111-
href="https://unpkg.com/svelte-highlight/styles/github.css"
112-
/>
113-
</head>
114-
</html>
106+
<head>
107+
<link
108+
rel="stylesheet"
109+
href="https://unpkg.com/svelte-highlight/styles/github.css"
110+
/>
111+
</head>
115112
```
116113

117114
**svelte:head**
@@ -148,7 +145,7 @@ Use the `HighlightSvelte` component for Svelte syntax highlighting.
148145

149146
The `HighlightAuto` component uses [highlightAuto](https://highlightjs.readthedocs.io/en/latest/api.html#highlightauto) API.
150147

151-
> **Warning**
148+
> [!WARNING]
152149
> Auto-highlighting will result in a larger bundle size. Specify a language if possible.
153150
154151
```svelte

0 commit comments

Comments
 (0)