mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Format code for easier editing
This commit is contained in:
parent
01d95558e6
commit
2216db9de7
@ -661,12 +661,11 @@ impl<'a> fmt::Display for Markdown<'a> {
|
|||||||
|
|
||||||
let mut s = String::with_capacity(md.len() * 3 / 2);
|
let mut s = String::with_capacity(md.len() * 3 / 2);
|
||||||
|
|
||||||
html::push_html(&mut s,
|
let p = HeadingLinks::new(p, None);
|
||||||
Footnotes::new(
|
let p = LinkReplacer::new(p, links);
|
||||||
CodeBlocks::new(
|
let p = CodeBlocks::new(p, codes);
|
||||||
LinkReplacer::new(
|
let p = Footnotes::new(p);
|
||||||
HeadingLinks::new(p, None),
|
html::push_html(&mut s, p);
|
||||||
links), codes)));
|
|
||||||
|
|
||||||
fmt.write_str(&s)
|
fmt.write_str(&s)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user