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
@@ -101,20 +107,6 @@ import highlight from '@comark/react/plugins/highlight'
101
107
Highlight code with different themes for light and dark modes. Both palettes are embedded as CSS custom properties, so there is no flash on theme switch. See all [available themes →](https://shiki.style/themes)
102
108
103
109
```typescript
104
-
highlight({
105
-
themes: {
106
-
light: 'github-light',
107
-
dark: 'github-dark'
108
-
}
109
-
})
110
-
```
111
-
112
-
You can also pass theme registration objects (for example from `@shikijs/themes`) when you want explicit control over what gets bundled:
@@ -217,7 +209,7 @@ Returns a `ComarkPlugin` that enables Shiki syntax highlighting.
217
209
218
210
| Option | Type | Default | Description |
219
211
|---|---|---|---|
220
-
|[`themes`](#options-themes)|`object`| Material themes | Light and dark theme names or registrations |
212
+
|[`themes`](#options-themes)|`object`| Material themes | Light and dark theme registrations |
221
213
|[`languages`](#options-languages)|`LanguageRegistration[]`|`undefined`| Languages to preload |
222
214
|[`transformers`](#options-transformers)|`ShikiTransformer[]`|`undefined`| Shiki transformers applied to every block |
223
215
|[`preStyles`](#options-prestyles)|`boolean`|`false`| Add inline background/foreground styles to `<pre>`|
@@ -226,18 +218,21 @@ Returns a `ComarkPlugin` that enables Shiki syntax highlighting.
226
218
227
219
### `themes`
228
220
229
-
Theme configuration for light and dark modes. Each value can be a [bundled theme name](https://shiki.style/themes) string (resolved from `shiki`) or a theme registration object.
221
+
Theme configuration for light and dark modes. Import from `@shikijs/themes`.
0 commit comments