Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Fix: Improve Code Pasting Functionality for Code Blocks #176

Open
SwapnilChand opened this issue Dec 4, 2024 · 0 comments
Open

Fix: Improve Code Pasting Functionality for Code Blocks #176

SwapnilChand opened this issue Dec 4, 2024 · 0 comments

Comments

@SwapnilChand
Copy link
Contributor

SwapnilChand commented Dec 4, 2024

Description:
Currently, when pasting code blocks into the application, users experience significant formatting issues. Instead of pasting the intended code, the application often displays an HTML representation, which disrupts the intended structure and readability. Additionally, pasting code can break the width of the code block element, making it difficult to read and edit.

after pasting

Screenshot 2024-12-04 095011

after pasting and clicking outside

Screenshot 2024-12-04 095018

Expected Behavior:
Plain Text Pasting: Pasting should only include text without any HTML formatting. This would allow for a cleaner and more predictable outcome.
Color Handling: The application should support syntax highlighting or color coding when pasting code blocks to enhance readability and maintain context.

Steps to Reproduce:
Copy a block of code from an Integrated Development Environment (IDE) such as VSCode
Paste it into the application.
Observe that instead of the expected formatted code, an HTML version appears, and the width of the code block is altered.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant