(theme?: ShikiThemeProp)
| 133 | |
| 134 | /** The shiki options that render dual-theme `light-dark(...)` colors. */ |
| 135 | export const dualThemeOptions = (theme?: ShikiThemeProp) => ({ |
| 136 | themes: resolveShikiThemes(theme), |
| 137 | defaultColor: "light-dark()" as const, |
| 138 | }); |
| 139 | |
| 140 | export function resolveLang(lang: string): SupportedLang | null { |
| 141 | const l = lang.trim().toLowerCase(); |
no test coverage detected