Skip to main content

escape_bulleted_list

Function escape_bulleted_list 

Source
pub fn escape_bulleted_list(text: &str) -> Cow<'_, str>
Expand description

Escapes only bullets at the start of a line in text (EscapeOptions::bulleted_list).

discord.js counterpart: escapeBulletedList.

ยงExamples

assert_eq!(djs_formatters::escape_bulleted_list("- item"), r"\- item");