Skip to content
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

Make it possible to skip code blocks based on the programming language #76

Open
mgeisler opened this issue Sep 11, 2023 · 4 comments
Open
Assignees

Comments

@mgeisler
Copy link
Collaborator

It feels like it would be useful to let users skip code blocks based on the info string (the part after ```).

That would make it easy to, say, skip all TOML and shell script code blocks from Comprehensive Rust.

@mgeisler
Copy link
Collaborator Author

This is an extension of #63.

@mgeisler
Copy link
Collaborator Author

@dyoo, would you also be interested in this one?

@dyoo
Copy link
Collaborator

dyoo commented Sep 11, 2023

Sure, I believe it should be straightforward. Yes, let me work on this.

I'm guessing we want to define a list of lang lines to ignore somewhere, perhaps another configuration option in book.toml from the proposal in #63 (comment)

@mgeisler
Copy link
Collaborator Author

I'm guessing we want to define a list of lang lines to ignore somewhere, perhaps another configuration option in book.toml from the proposal in #63 (comment)

Yeah, precisely!

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

No branches or pull requests

2 participants