-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
editions support for mdbook test #812
Comments
Mdbook calls out to rustdoc, which supports “edition2018” and “edition2015” as a modifier to the triple backtick code blocks.
… On Nov 3, 2018, at 8:23 PM, vorner ***@***.***> wrote:
Hello
I can't find a way to turn on the 2018 edition in mdbook test. I guess this is more of a documentation issue, because after all, there's the 2018 edition of The Book, so it must work somehow. But some kind of option somewhere or explanation how to do that in docs would be nice.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
It would be useful to have a config option to set a default. That would avoid having to type it every time, and prevent the loss of syntax highlighting within the IDE. |
@steveklabnik Looks like src/chapter_1.md:
However with:
Works as expected:
|
Yea, this was just recently discovered. There is a PR (rust-lang/rust#66238) to fix that. |
How about adding Books will have to replace |
There was a recent PR to add that (#1086), but it had a problem so had to be reverted. I'm looking at fixing it, but I wanted to change how the config was defined. It's near the top of my list, so hopefully soon! |
Hello
I can't find a way to turn on the 2018 edition in
mdbook test
. I guess this is more of a documentation issue, because after all, there's the 2018 edition of The Book, so it must work somehow. But some kind of option somewhere or explanation how to do that in docs would be nice.The text was updated successfully, but these errors were encountered: