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: docs/src/content/docs/guides/authoring-content.mdx
+10-10
Original file line number
Diff line number
Diff line change
@@ -220,24 +220,24 @@ var fun = function lang(l) {
220
220
221
221
### Expressive Code features
222
222
223
-
Starlight uses [Expressive Code](https://github.com/expressive-code/expressive-code/tree/main/packages/astro-expressive-code) to extend formatting possibilities for code blocks.
223
+
Starlight uses [Expressive Code](https://expressive-code.com/) to extend formatting possibilities for code blocks.
224
224
Expressive Code’s text markers and window frames plugins are enabled by default.
225
225
Code block rendering can be configured using Starlight’s [`expressiveCode` configuration option](/reference/configuration/#expressivecode).
226
226
227
227
#### Text markers
228
228
229
-
You can highlight specific lines or parts of your code blocks using [Expressive Code text markers](https://github.com/expressive-code/expressive-code/blob/main/packages/%40expressive-code/plugin-text-markers/README.md#usage-in-markdown--mdx-documents) on the opening line of your code block.
229
+
You can highlight specific lines or parts of your code blocks using [Expressive Code text markers](https://expressive-code.com/key-features/text-markers/) on the opening line of your code block.
230
230
Use curly braces (`{ }`) to highlight entire lines, and quotation marks to highlight strings of text.
231
231
232
232
There are three highlighting styles: neutral for calling attention to code, green for indicating inserted code, and red for indicating deleted code.
233
233
Both text and entire lines can be marked using the default marker, or in combination with `ins=` and `del=` to produce the desired highlighting.
234
234
235
235
Expressive Code provides several options for customizing the visual appearance of your code samples.
236
236
Many of these can be combined, for highly illustrative code samples.
237
-
Please explore the [Expressive Code documentation](https://github.com/expressive-code/expressive-code/blob/main/packages/%40expressive-code/plugin-text-markers/README.md) for the extensive options available.
237
+
Please explore the [Expressive Code documentation](https://expressive-code.com/key-features/text-markers/#configuration) for the extensive options available.
238
238
Some of the most common examples are shown below:
239
239
240
-
-[Mark entire lines & line ranges using the `{ }` marker](https://github.com/expressive-code/expressive-code/blob/main/packages/%40expressive-code/plugin-text-markers/README.md#marking-entire-lines--line-ranges):
240
+
-[Mark entire lines & line ranges using the `{ }` marker](https://expressive-code.com/key-features/text-markers/#marking-full-lines--line-ranges):
241
241
242
242
```js {2-3}
243
243
functiondemo() {
@@ -255,7 +255,7 @@ Some of the most common examples are shown below:
255
255
```
256
256
````
257
257
258
-
-[Mark selections of text using the `" "` marker or regular expressions](https://github.com/expressive-code/expressive-code/blob/main/packages/%40expressive-code/plugin-text-markers/README.md#marking-individual-text-inside-lines):
258
+
-[Mark selections of text using the `" "` marker or regular expressions](https://expressive-code.com/key-features/text-markers/#marking-individual-text-inside-lines):
259
259
260
260
```js "Individual terms" /Even.*supported/
261
261
// Individual terms can be highlighted, too
@@ -273,7 +273,7 @@ Some of the most common examples are shown below:
273
273
```
274
274
````
275
275
276
-
-[Mark text or lines as inserted or deleted with `ins` or `del`](https://github.com/expressive-code/expressive-code/blob/main/packages/%40expressive-code/plugin-text-markers/README.md#selecting-marker-types-mark-ins-del):
276
+
-[Mark text or lines as inserted or deleted with `ins` or `del`](https://expressive-code.com/key-features/text-markers/#selecting-inline-marker-types-mark-ins-del):
277
277
278
278
```js "return true;" ins="inserted" del="deleted"
279
279
functiondemo() {
@@ -293,7 +293,7 @@ Some of the most common examples are shown below:
293
293
```
294
294
````
295
295
296
-
-[Combine syntax highlighting with `diff`-like syntax](https://github.com/expressive-code/expressive-code/blob/main/packages/%40expressive-code/plugin-text-markers/README.md#combining-syntax-highlighting-with-diff-like-syntax):
296
+
-[Combine syntax highlighting with `diff`-like syntax](https://expressive-code.com/key-features/text-markers/#combining-syntax-highlighting-with-diff-like-syntax):
297
297
298
298
```diff lang="js"
299
299
function thisIsJavaScript() {
@@ -323,7 +323,7 @@ Other languages display inside a code editor-style frame if they include a title
323
323
324
324
A code block’s optional title can be set either with a `title="..."` attribute following the code block's opening backticks and language identifier, or with a file name comment in the first lines of the code.
325
325
326
-
-[Add a file name tab with a comment](https://github.com/expressive-code/expressive-code/blob/main/packages/%40expressive-code/plugin-frames/README.md#adding-titles-open-file-tab-or-terminal-window-title)
326
+
-[Add a file name tab with a comment](https://expressive-code.com/key-features/frames/#code-editor-frames)
327
327
328
328
```js
329
329
// my-test-file.js
@@ -337,7 +337,7 @@ A code block’s optional title can be set either with a `title="..."` attribute
337
337
```
338
338
````
339
339
340
-
-[Add a title to a Terminal window](https://github.com/expressive-code/expressive-code/blob/main/packages/%40expressive-code/plugin-frames/README.md#adding-titles-open-file-tab-or-terminal-window-title)
340
+
-[Add a title to a Terminal window](https://expressive-code.com/key-features/frames/#terminal-frames)
341
341
342
342
```bash title="Installing dependencies…"
343
343
npm install
@@ -349,7 +349,7 @@ A code block’s optional title can be set either with a `title="..."` attribute
349
349
```
350
350
````
351
351
352
-
-[Disable window frames with `frame="none"`](https://github.com/expressive-code/expressive-code/blob/main/packages/%40expressive-code/plugin-frames/README.md#overriding-frame-types)
352
+
-[Disable window frames with `frame="none"`](https://expressive-code.com/key-features/frames/#overriding-frame-types)
353
353
354
354
```bash frame="none"
355
355
echo"This is not rendered as a terminal despite using the bash language"
Starlight uses [Expressive Code](https://github.com/expressive-code/expressive-code/tree/main/packages/astro-expressive-code) to render code blocks and add support for highlighting parts of code examples, adding filenames to code blocks, and more.
387
+
Starlight uses [Expressive Code](https://expressive-code.com) to render code blocks and add support for highlighting parts of code examples, adding filenames to code blocks, and more.
388
388
See the [“Code blocks” guide](/guides/authoring-content/#code-blocks) to learn how to use Expressive Code syntax in your Markdown and MDX content.
389
389
390
-
You can use any of the standard [Expressive Code configuration options](https://github.com/expressive-code/expressive-code/blob/main/packages/astro-expressive-code/README.md#configuration) as well as some Starlight-specific properties, by setting them in Starlight’s `expressiveCode` option.
390
+
You can use any of the standard [Expressive Code configuration options](https://expressive-code.com/reference/configuration/) as well as some Starlight-specific properties, by setting them in Starlight’s `expressiveCode` option.
391
391
For example, set Expressive Code’s `styleOverrides` option to override the default CSS. This enables customizations like giving your code blocks rounded corners:
392
392
393
393
```js ins={2-4}
@@ -414,7 +414,7 @@ In addition to the standard Expressive Code options, you can also set the follow
See the [Expressive Code `themes` documentation](https://github.com/expressive-code/expressive-code/blob/main/packages/astro-expressive-code/README.md#themes) for details of the supported theme formats.
417
+
See the [Expressive Code `themes` documentation](https://expressive-code.com/guides/themes/) for details of the supported theme formats.
418
418
419
419
Starlight uses the dark and light variants of Sarah Drasner’s [Night Owl theme](https://github.com/sdras/night-owl-vscode-theme) by default.
Copy file name to clipboardexpand all lines: packages/starlight/integrations/expressive-code/index.ts
+1-1
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ export type StarlightExpressiveCodeOptions = Omit<AstroExpressiveCodeOptions, 't
20
20
/**
21
21
* Set the themes used to style code blocks.
22
22
*
23
-
* See the [Expressive Code `themes` documentation](https://github.com/expressive-code/expressive-code/blob/main/packages/astro-expressive-code/README.md#themes)
23
+
* See the [Expressive Code `themes` documentation](https://expressive-code.com/guides/themes/)
24
24
* for details of the supported theme formats.
25
25
*
26
26
* Starlight uses the dark and light variants of Sarah Drasner’s
0 commit comments