Function: normalizeCodeBlockLanguages()
normalizeCodeBlockLanguages(
input):NormalizedCodeBlockLanguages
Normalizes the codeBlockLanguages parameter into a canonical form.
Accepts either a Record<string, string> (legacy) or a CodeBlockLanguage[] array.
Parameters
| Parameter | Type |
|---|---|
input | Record<string, string> | CodeBlockLanguage[] |