(themeName: string)
| 180 | } |
| 181 | |
| 182 | function defaultSyntaxThemeName(themeName: string): string { |
| 183 | if (themeName.includes('ansi')) return 'ansi' |
| 184 | if (themeName.includes('dark')) return 'Monokai Extended' |
| 185 | return 'GitHub' |
| 186 | } |
| 187 | |
| 188 | // highlight.js scope → syntect Monokai Extended foreground (measured from the |
| 189 | // Rust module's output so colors match the original exactly) |