Skip to main content

opens_bold

Function opens_bold 

Source
fn opens_bold(chars: &[char], at: usize) -> bool
Expand description

A * opens a bold span only at a word boundary, with text after it and no doubled marker either side - the ** of a literal and the * of a glob are literals rather than openers. The rule mirrors strip_emphasis in forge-server’s envelope.rs; a change there should move here.