Skip to content

Indentation of # hidden code #281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dtolnay opened this issue May 17, 2017 · 1 comment · Fixed by #284
Closed

Indentation of # hidden code #281

dtolnay opened this issue May 17, 2017 · 1 comment · Fixed by #284

Comments

@dtolnay
Copy link
Member

dtolnay commented May 17, 2017

In https://github.com/brson/rust-cookbook/pull/107 we discovered that mdBook is indenting hidden code by one space when expanded.

a
# b

... turns into:

a
 b

This is not the behavior of rustdoc. For example look at this standard library example and then click through on the "Run" button here. The line is not indented by one space.

@steveklabnik
Copy link
Member

Interesting; I thought I copied rustdoc's behavior here exactly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants