Skip to content

Commit

Permalink
docs: use warn block syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Apr 7, 2024
1 parent 8d32b0e commit cf9df23
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,12 @@ CSS StyleSheets can also be externally linked from a Content Delivery Network (C
**HTML**

```html
<!doctype html>
<html lang="en">
<head>
<link
rel="stylesheet"
href="https://unpkg.com/svelte-highlight/styles/github.css"
/>
</head>
</html>
<head>
<link
rel="stylesheet"
href="https://unpkg.com/svelte-highlight/styles/github.css"
/>
</head>
```

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

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

> **Warning**
> [!WARNING]
> Auto-highlighting will result in a larger bundle size. Specify a language if possible.
```svelte
Expand Down

0 comments on commit cf9df23

Please sign in to comment.