Fix lints syntax highlighting

This commit is contained in:
Guillaume Gomez 2024-10-14 16:17:10 +02:00
parent 82969e5c4e
commit da19d47147

View File

@ -396,7 +396,8 @@ struct Renderer<'a> {
impl Renderer<'_> {
fn markdown(input: &str) -> Safe<String> {
let parser = Parser::new_ext(input, Options::all());
let input = clippy_config::sanitize_explanation(input);
let parser = Parser::new_ext(&input, Options::all());
let mut html_output = String::new();
html::push_html(&mut html_output, parser);
// Oh deer, what a hack :O