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

Add copy to clipboard functionality to code blocks #436

Merged
merged 4 commits into from
Apr 16, 2024

Conversation

vinceau
Copy link
Member

@vinceau vinceau commented Apr 15, 2024

Description

This PR adds proper code block functionality to our markdown renderer. A copy to clipboard button appears on hover. We also replace the usages of our electron clipboard with built in browser clipboard functionality.

Screenshots

Before

Screenshot 2024-04-15 at 10 57 21 PM

After

Screenshot 2024-04-15 at 10 56 48 PM

@vinceau vinceau requested a review from NikhilNarayana April 15, 2024 12:58
@vinceau vinceau merged commit ae8bb69 into main Apr 16, 2024
6 checks passed
@vinceau vinceau deleted the add-copy-to-code-blocks branch April 16, 2024 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants