| 62 | * @returns {string} |
| 63 | */ |
| 64 | const resolveLanguage = languageId => { |
| 65 | const normalized = languageId?.toLowerCase(); |
| 66 | |
| 67 | if ( |
| 68 | normalized && |
| 69 | (isSpecialLang(normalized) || loadedLanguages.has(normalized)) |
| 70 | ) { |
| 71 | return languageId; |
| 72 | } |
| 73 | |
| 74 | return FALLBACK_LANGUAGE; |
| 75 | }; |
| 76 | |
| 77 | /** |
| 78 | * Highlights code and returns the inner HTML inside the <code> tag |
no outgoing calls
no test coverage detected