(code: HTMLElement)
| 28 | }; |
| 29 | |
| 30 | const getLanguageName = (code: HTMLElement) => { |
| 31 | const match = code.className.match(/language-([^\s]+)/); |
| 32 | return match ? match[1] : ""; |
| 33 | }; |
| 34 | |
| 35 | const loadLanguage = (languageName: string): Promise<LanguageSupport | undefined> => { |
| 36 | return loadCodeMirrorHighlightLanguage(languageName); |
no outgoing calls
no test coverage detected