pub fn escape_code_block(text: &str) -> Cow<'_, str>Expand description
Escapes only runs of three or more backticks in text (EscapeOptions::code_block).
discord.js counterpart: escapeCodeBlock.
ยงExamples
assert_eq!(djs_formatters::escape_code_block("```rust```"), r"\`\`\`rust\`\`\`");