* Gets the Ink-compatible color string for a given highlight.js class name. * @param hljsClass The highlight.js class name (e.g., 'hljs-keyword', 'hljs-string'). * @returns The corresponding Ink color string (hex or name) if it exists.
(hljsClass: string)
| 170 | * @returns The corresponding Ink color string (hex or name) if it exists. |
| 171 | */ |
| 172 | getInkColor(hljsClass: string): string | undefined { |
| 173 | return this._colorMap[hljsClass]; |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * Resolves a CSS color value (name or hex) into an Ink-compatible color string. |