Skip to main content

detect

Function detect 

Source
pub fn detect(text: &str) -> Content
Expand description

Detection, in priority order, over the first lines only.

Order is the design: a diff is also code, a table is also prose, and whichever check runs first wins. Cheapest and most specific first.