Skip to main content

resolve

Function resolve 

Source
pub fn resolve(tag: &str) -> Option<&'static Lang>
Expand description

Find the language a fence tag names. Tags are the raw first word of the fence info string — rust {.numberLines}, rust,foo, Rust — so they are trimmed at the first space or comma and case-folded before lookup.