lnnrtwttkhn / version-control-book

Source code for the Version Control Book, a guide to Git for scientists
https://lennartwittkuhn.com/version-control-book/
Creative Commons Attribution Share Alike 4.0 International
7 stars 2 forks source link

disable code-copy on "output" code chunks #171

Open lnnrtwttkhn opened 4 months ago

lnnrtwttkhn commented 4 months ago

I would like to disable the code-copy button on all code chunks that display output from commands but are not meant to be copied by users.

we would then disable code-copy from all code chunks that we label as output, see #168.

could you please keep an eye on this and implement it when revising the chapters or creating new ones @konradpa, thanks!

lnnrtwttkhn commented 4 months ago

Implemented in c9c38d6:

just add #| code-copy: false to the code chunk, for details, see c9c38d6.

more details and original solution here: https://github.com/quarto-dev/quarto-cli/discussions/7885