Skip to content

Commit

Permalink
fix(plugin_toc): remove extra escape char
Browse files Browse the repository at this point in the history
  • Loading branch information
fupeng.antik committed Nov 17, 2023
1 parent 5b52c03 commit f226656
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion crates/plugin_toc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ pub fn collect_title_in_mdast(heading: &mut Heading) -> (String, String) {
_ => continue, // Continue if node is not Text or Code
}
}
title = title.replace("\"", "\\\"").replace("'", "\\\'");
(title, custom_id)
}

Expand Down

0 comments on commit f226656

Please sign in to comment.