spatialaudio / nbsphinx

:ledger: Sphinx source parser for Jupyter notebooks
https://nbsphinx.readthedocs.io/
MIT License
457 stars 130 forks source link

CSS: update for hiding copy button in prompts #610

Closed mgeier closed 2 years ago

mgeier commented 2 years ago

In previous versions, <a> has been used, in newer versions they seem to have changed to <button>.

This PR can handle both.

Fixes #607.

kolibril13 commented 2 years ago

I've tried this feature here: https://github.com/kolibril13/flyingframes/pull/20/files#diff-2c9c11d26b09b8afde329980309d967121543a456e4592c76886a20b5cf56c90R4

And it works as expected.

Before: https://flyingframes.readthedocs.io/en/latest/ch3.html

After: https://flyingframes--20.org.readthedocs.build/en/20/ch3.html

mgeier commented 2 years ago

Thanks for testing @kolibril13!