Skip to content

Commit

Permalink
Merge pull request #14 from web-infra-dev/fix/remove-extra-escape
Browse files Browse the repository at this point in the history
fix(plugin_toc): remove extra escape char
  • Loading branch information
10Derozan authored Nov 21, 2023
2 parents 5b52c03 + 581cded commit 135e476
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 135e476

Please sign in to comment.