mdbook-i18n-helpers icon indicating copy to clipboard operation
mdbook-i18n-helpers copied to clipboard

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

Open mgeisler opened this issue 2 years ago • 5 comments

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 avatar Sep 11 '23 18:09 mgeisler

This is an extension of #63.

mgeisler avatar Sep 11 '23 18:09 mgeisler

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

mgeisler avatar Sep 11 '23 18:09 mgeisler

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 https://github.com/google/mdbook-i18n-helpers/issues/63#issuecomment-1712518291

dyoo avatar Sep 11 '23 19:09 dyoo

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!

mgeisler avatar Sep 14 '23 08:09 mgeisler

Hi @dyoo, I think we can unassign this for now. You should of course feel free to jump back in :smile:

mgeisler avatar Sep 23 '24 16:09 mgeisler