1 2 3 4 5 6 7 8 9
use crate::helpers::re; use regex::Captures; // Parse: Highlights (`<mark />`) pub fn default(html: &mut String) { re::parse(html, re::from(re::HIGHLIGHT), | capture: Captures | format!("<mark>{}</mark>", &capture[1].trim()) ); }