Skip to main content

toggle_checkbox

Function toggle_checkbox 

Source
pub fn toggle_checkbox(text: &str, line: usize) -> Option<String>
Expand description

Toggle a list checkbox on the line at line: [ ][x] (treating [-] and [X] as checked). None if the line has no checkbox.