MCPcopy Create free account
hub / github.com/Auto-Plugin/milkup / normalizeLanguage

Function normalizeLanguage

src/core/nodeviews/code-block.ts:506–509  ·  view source on GitHub ↗

* 规范化语言名称

(language: string)

Source from the content-addressed store, hash-verified

504 * 规范化语言名称
505 */
506function normalizeLanguage(language: string): string {
507 const lower = language.toLowerCase();
508 return languageAliases[lower] || lower;
509}
510
511/**
512 * 获取语言扩展

Callers 1

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected