mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
22 lines
414 B
Markdown
22 lines
414 B
Markdown
|
---
|
||
|
'astro': major
|
||
|
---
|
||
|
|
||
|
Removes support for Shiki custom language's `path` property. The language JSON file should be imported and passed to the option instead.
|
||
|
|
||
|
```diff
|
||
|
// astro.config.js
|
||
|
+ import customLang from './custom.tmLanguage.json'
|
||
|
|
||
|
export default defineConfig({
|
||
|
markdown: {
|
||
|
shikiConfig: {
|
||
|
langs: [
|
||
|
- { path: './custom.tmLanguage.json' },
|
||
|
+ customLang,
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
})
|
||
|
```
|