-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
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
doctest::make_test(&test, krate, false, &Default::default(), edition, None); |
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 like format=true
for the code link.
Metadata
Metadata
Assignees
Labels
A-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.