Skip to main content

code_language_label

Function code_language_label 

Source
pub fn code_language_label(lang: &str) -> &'static str
Expand description

Map a fence language to docling’s CodeLanguageLabel (case-insensitive), else unknown. docling’s CodeLanguageLabel for a language name (unknown when it is not one docling knows) — the mapping the JSON code_language field uses, for a backend that wants to test a hint before storing it.