-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
theme setting in code() is not working well #61
Comments
Hello; const carta = new Carta({
// ...
code({
theme: 'github-light',
}),
shikiOptions: {
themes: ['github-light']
}
}) I'll add that to the docs. |
solved, thank you very much! I super love you editor, if there are more detail document it will be very helpful. btw, just wondering. I thought only language set in langs will be rendering, but looks like all language will be render in some rule? |
Don't worry, those languages are bundled into the output directory. This does not mean they are automatically imported with the editor. In fact, if you go to your editor and start using an additional language while having the network tab open, you'll see that languages are imported only when needed. |
if there are no theme setting like
theme: 'github-light'
, code will be highlighter. but if include theme setting in code(). all code will be rendering as normal code block without highlight.The text was updated successfully, but these errors were encountered: