diff --git a/crates/ruff_dev/src/generate_rules_table.rs b/crates/ruff_dev/src/generate_rules_table.rs index 399835404a..7b489a8543 100644 --- a/crates/ruff_dev/src/generate_rules_table.rs +++ b/crates/ruff_dev/src/generate_rules_table.rs @@ -29,7 +29,7 @@ fn generate_table(table_out: &mut String, rules: impl IntoIterator, .is_some() .then_some(format_args!("[{rule_name}](rules/{rule_name}.md)")) .unwrap_or(format_args!("{rule_name}")), - rule.message_formats()[0].replace('|', r"\|"), + rule.message_formats()[0], fix_token )); table_out.push('\n');