()
| 4 | |
| 5 | // to avoid multiplication of highlighters during doc building |
| 6 | export async function getOrCreateHighlighter() { |
| 7 | if (!highlighter) { |
| 8 | highlighter = await getHighlighter({ |
| 9 | themes: ["github-light", "one-dark-pro"], |
| 10 | }); |
| 11 | } |
| 12 | return highlighter; |
| 13 | } |
| 14 | |
| 15 | export function getLoadedLanguages() { |
| 16 | return highlighter ? highlighter.getLoadedLanguages() : []; |
nothing calls this directly
no outgoing calls
no test coverage detected