Add format indent for generated code link with rust-playground #120998
Labels
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
This idea is from #119161
When clicking the
Run
button, will jump to the rust-playground, the code is not indent well:the link is generated from code:
rust/src/librustdoc/html/markdown.rs
Line 306 in 0a5b998
I would be nice if we add extra indent space for the code block after inserting
fn main {
for the code in document.I checked
rust-playgrund
, seems there is no a URL argument likeformat=true
for the code link.The text was updated successfully, but these errors were encountered: