pub fn escape_heading(text: &str) -> Cow<'_, str>Expand description
Escapes only headings at the start of a line in text (EscapeOptions::heading).
discord.js counterpart: escapeHeading.
ยงExamples
assert_eq!(djs_formatters::escape_heading("## Title"), r"\## Title");