-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix pasting into fenced code block #2641
Conversation
- add shortcut to paste smartly - use electron's clipboard
@daiyam can you resolve the conflict? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
@daiyam what is feature of smart paste? Just curious. |
@richardtks if the copied data is some html code (from navigator or styled terminal), it convert the it as markdown code (h1 becomes an heading). But it won't convert if it's pasted in a code block. |
Description
This change fixes the pasting in code block.
It avoid the pasted code to be parsed as HTML and so avoid any
\
or new lines to be added to the code.Issue fixed
Type of changes
Checklist: