Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make copy button ignore prompts #1462

Closed
AlbertMitjans opened this issue Aug 15, 2023 · 1 comment · Fixed by #1465
Closed

Make copy button ignore prompts #1462

AlbertMitjans opened this issue Aug 15, 2023 · 1 comment · Fixed by #1465
Assignees
Labels
bug Something isn't working

Comments

@AlbertMitjans
Copy link

I would like the copy button to ignore prompts, such as the python prompt (>>>) or the console prompt ($).

Right now these prompts get copied when clicking the copy button.

If this is hard to implement, I would like an option to remove the copy buttons from the code blocks. This way I can use sphinx-copybutton instead.

@kai687
Copy link
Owner

kai687 commented Aug 16, 2023

I thought it wouldn't select console prompts already. I definitely intended it to be this way. So, it's a bug that I'm going to fix.

@kai687 kai687 self-assigned this Aug 16, 2023
@kai687 kai687 added the bug Something isn't working label Aug 16, 2023
@kai687 kai687 linked a pull request Aug 17, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants