Open bflaton opened 1 year ago
If you leave an indication that a change like this would be accepted, I'll consider opening a PR with the changes in it. But it's always good to ask in advance IMO :-)
https://github.com/rust-lang/mdBook/pull/1346 might be related.
I think it's valuable to visually telegraph the use of a shell command. I would prefer this be fixed on the mdbook side rather than the Rust Book side.
Conversely: if mdbook somehow made this behavior possible, even through configuration, I would be happy to add that configuration.
main
branch to see if this has already been fixed, in this file:URL to the section(s) of the book with this problem: src/ch01-01-installation.md, but other chapters may suffer from the same
Description of the problem: Current shell commands listed in the installation chapter include the shell prompt, presumably for readibility. Yet, even though this fact is explained at the start of the chapter, it still makes the "copy to clipboard" function annoying to use and I find myself manually selecting the command and copy/pasting. I think readers are better served with the ability to use the "copy to clipboard" at the expense of not showing some command prompt character (which looks different on my linux distro anyway).
Suggested fix: Remove any "prompt characters" from the shell commands, so that the full content of the command block can just be copy/pasted.