Skip to content

Commit bd47f67

Browse files
committed
auto merge of #12737 : alexcrichton/rust/issue-12736, r=brson
Turns out sundown has already escaped this content for us, so there's no need for us to escape it again. Closes #12736
2 parents 987de29 + 9f6bced commit bd47f67

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustdoc/html/markdown.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ use std::vec;
3838
use collections::HashMap;
3939

4040
use html::highlight;
41-
use html::escape::Escape;
4241

4342
/// A unit struct which has the `fmt::Show` trait implemented. When
4443
/// formatted, this struct will emit the HTML corresponding to the rendered
@@ -198,7 +197,7 @@ pub fn render(w: &mut io::Writer, s: &str) -> fmt::Result {
198197

199198
// Render the HTML
200199
let text = format!(r#"<h{lvl} id="{id}">{}</h{lvl}>"#,
201-
Escape(s.as_slice()), lvl = level, id = id);
200+
s, lvl = level, id = id);
202201
text.with_c_str(|p| unsafe { bufputs(ob, p) });
203202
}
204203

0 commit comments

Comments
 (0)