We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6645bd7 + 2478602 commit fb58c5dCopy full SHA for fb58c5d
mdbook-spec/src/grammar/render_markdown.rs
@@ -223,6 +223,7 @@ impl Characters {
223
224
/// Escapes characters that markdown would otherwise interpret.
225
fn markdown_escape(s: &str) -> Cow<'_, str> {
226
- static ESC_RE: LazyLock<Regex> = LazyLock::new(|| Regex::new(r#"[\\`_*\[\](){}'"]"#).unwrap());
+ static ESC_RE: LazyLock<Regex> =
227
+ LazyLock::new(|| Regex::new(r#"[\\`_*\[\](){}'".-]"#).unwrap());
228
ESC_RE.replace_all(s, r"\$0")
229
}
0 commit comments