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.
1 parent 6d470a9 commit 6a2190cCopy full SHA for 6a2190c
src/librustdoc/html/markdown.rs
@@ -212,12 +212,6 @@ pub fn render(w: &mut fmt::Formatter,
212
ret = ret.trim_right().to_owned();
213
214
let id = ret.clone();
215
- // Discard '<em>', '<code>' tags and some escaped characters,
216
- // transform the contents of the header into a hyphenated string
217
- // without non-alphanumeric characters other than '-' and '_'.
218
- //
219
- // This is a terrible hack working around how hoedown gives us rendered
220
- // html for text rather than the raw text.
221
let id = id.chars().filter_map(|c| {
222
if c.is_alphanumeric() || c == '-' || c == '_' {
223
if c.is_ascii() {
0 commit comments