16b8364119
* feat: prism and shiki support, with better exports! * chore: update tests * chore: fix lock * chore: add prism test * chore: remove `async` from prism * docs: update syntax highlight readme * chore: changeset * edit: remove `await` from prism docs * chore: update old changest with new shiki instructions * fix: add trailing newline on ts-expect-error * refactor: resolve promises internally * docs: remove `await` from shiki examples
19 lines
517 B
Markdown
19 lines
517 B
Markdown
---
|
|
'@astrojs/markdoc': patch
|
|
---
|
|
|
|
Add support for syntax highlighting with Shiki. Apply to your Markdoc config using the `extends` property:
|
|
|
|
```js
|
|
// markdoc.config.mjs
|
|
import { defineMarkdocConfig } from '@astrojs/markdoc/config';
|
|
import shiki from '@astrojs/markdoc/shiki';
|
|
|
|
export default defineMarkdocConfig({
|
|
extends: [
|
|
shiki({ /** Shiki config options */ }),
|
|
],
|
|
})
|
|
```
|
|
|
|
Learn more in the [`@astrojs/markdoc` README.](https://docs.astro.build/en/guides/integrations-guide/markdoc/#syntax-highlighting)
|