-
Notifications
You must be signed in to change notification settings - Fork 5
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
Copy button not working after an error #65
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In a tutorial, I want to create a code block without any code highlight and without a copy button such as:
However, not providing a programming language breaks the script that adds the
COPY
buttons to code blocks. That's why we don't seeCOPY
buttons on code blocks after the one I shared above.A try-catch block like below in
code-copy-buttons.js
solves this problem but probably there is a better approach.The text was updated successfully, but these errors were encountered: