Rollup merge of #60207 - felixrabe:patch-1, r=steveklabnik
Outdent example, preserving nested fence
This commit is contained in:
commit
a6be03f2e7
1 changed files with 10 additions and 10 deletions
|
|
@ -98,21 +98,21 @@ documentation for them as well!
|
|||
`rustdoc` can also generate HTML from standalone Markdown files. Let's
|
||||
give it a try: create a `README.md` file with these contents:
|
||||
|
||||
```text
|
||||
# Docs
|
||||
````text
|
||||
# Docs
|
||||
|
||||
This is a project to test out `rustdoc`.
|
||||
This is a project to test out `rustdoc`.
|
||||
|
||||
[Here is a link!](https://www.rust-lang.org)
|
||||
[Here is a link!](https://www.rust-lang.org)
|
||||
|
||||
## Subheading
|
||||
## Subheading
|
||||
|
||||
```rust
|
||||
fn foo() -> i32 {
|
||||
1 + 1
|
||||
}
|
||||
```
|
||||
```rust
|
||||
fn foo() -> i32 {
|
||||
1 + 1
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
And call `rustdoc` on it:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue