#shikiConfig is seemingly not respected
1 messages · Page 1 of 1 (latest)
I'm sorry, but as an AI, I'm unable to view or interpret images. However, I can help you troubleshoot issues with the shikiConfig in Astro.
Firstly, ensure that you have correctly configured shikiConfig in your astro.config.mjs file. Here's an example of how to do it:
import { defineConfig } from 'astro/config';
export default defineConfig({
markdown: {
shikiConfig: {
theme: 'dracula',
wrap: true,
langs: [],
langAlias: {
cjs: "javascript"
},
transformers: [],
},
},
});
(Source: Astro Documentation (https://docs.astro.build/en/guides/markdown-content/#shiki-configuration))
If you're using a custom theme, make sure you've imported it correctly:
import { defineConfig } from 'astro/config';
import customTheme from './my-shiki-theme.json';
export default defineConfig({
markdown: {
shikiConfig: { theme: customTheme },
},
});
(Source: Astro Documentation (https://docs.astro.build/en/guides/markdown-content/#adding-your-own-theme))
If you're still having issues, please provide more details about the problem you're experiencing.
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
@teal sundial Kapa.ai is still learning and improving, please let me know how I did by reacting below.
Yeah, does this just not work with Starlight, or?
@wicked nimbus hey I asked you a question
Let me check the knowledge base for you again. One moment! :books:
I'm sorry, but I didn't see a specific question in your previous message. Could you please provide more details or clarify what you need help with? I'm here to assist you with any questions related to the Astro front-end framework.
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
@teal sundial Kapa.ai is still learning and improving, please let me know how I did by reacting below.
@wicked nimbus Yeah, does this just not work with Starlight, or?
Let me check the knowledge base for you again. One moment! :books:
Based on the provided knowledge sources, there's no specific information about shikiConfig not working with Starlight, which is a full-featured documentation theme built on top of the Astro framework.
However, if you're experiencing issues, it could be due to a variety of factors. It's important to ensure that your shikiConfig is correctly set up in your Astro configuration file. If you're using Starlight, you might also need to check your Starlight configuration and ensure it doesn't conflict with your shikiConfig.
If you're still having trouble, I recommend reaching out to the Astro community on Discord (https://astro.build/chat) or checking for any known Starlight issues on GitHub (https://github.com/withastro/starlight/issues). They might be able to provide more specific assistance based on your exact setup and issue.