Skip to content

Commit

Permalink
docs: clarify auto-highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Apr 7, 2024
1 parent cf9df23 commit afc779e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Use the `HighlightSvelte` component for Svelte syntax highlighting.

## Auto-highlighting

The `HighlightAuto` component uses [highlightAuto](https://highlightjs.readthedocs.io/en/latest/api.html#highlightauto) API.
The `HighlightAuto` component uses the [highlightAuto API](https://highlightjs.readthedocs.io/en/latest/api.html#highlightauto) and attempts to guess what grammar to use based on the provided `code`.

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

0 comments on commit afc779e

Please sign in to comment.