google / mdbook-i18n-helpers

Translation support for mdbook. The plugins here give you a structured way to maintain a translated book.
Apache License 2.0
127 stars 25 forks source link

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

Open mgeisler opened 1 year ago

mgeisler commented 1 year ago

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 commented 1 year ago

This is an extension of #63.

mgeisler commented 1 year ago

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

dyoo commented 1 year ago

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

mgeisler commented 1 year ago

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!