From c66d37ca9fce42ffb4a0c1550583665873862b0a Mon Sep 17 00:00:00 2001 From: Niels Bantilan Date: Wed, 12 Apr 2023 16:35:31 -0400 Subject: [PATCH] fixes copy button issue (#3584) Signed-off-by: Niels Bantilan --- rsts/conf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rsts/conf.py b/rsts/conf.py index cbab3c3f02..9cebcf9b16 100644 --- a/rsts/conf.py +++ b/rsts/conf.py @@ -246,6 +246,9 @@ # Makes it so that only the command is copied, not the output copybutton_prompt_text = "$ " +# prevent css style tags from being copied by the copy button +copybutton_exclude = 'style[type="text/css"]' + # -- Options for todo extension ---------------------------------------------- # If true, `todo` and `todoList` produce output, else they produce nothing.