Skip to content

Hidden lines from file code snippet are rendered #1619

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
qinsoon opened this issue Aug 2, 2021 · 1 comment · Fixed by #1621
Closed

Hidden lines from file code snippet are rendered #1619

qinsoon opened this issue Aug 2, 2021 · 1 comment · Fixed by #1621
Labels
A-Highlighting Area: Code colored syntax highlighting

Comments

@qinsoon
Copy link

qinsoon commented Aug 2, 2021

This seems to be introduced in the recent release 0.4.11. Code snippets are rendered with the hidden lines.

#![allow(unused)]
fn main() {

}

Also the examples in https://rust-lang.github.io/mdBook/format/mdbook.html seem to be broken as well. The examples for 'Hiding code lines' and 'Including a file but initially hiding all except specified lines' seem to include the lines that are supposed to be hidden.

@ehuss ehuss added the A-Highlighting Area: Code colored syntax highlighting label Aug 2, 2021
@ehuss
Copy link
Contributor

ehuss commented Aug 2, 2021

Apologies, I have published 0.4.12 to resolve the regression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Highlighting Area: Code colored syntax highlighting
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants