Line breaks should be preserved with `setCodeBlock` & `toggleCodeBlock`
What’s the bug you are facing?
When we attempt to convert a paragraph with multiple lines (i.e. with line breaks created with Shift + Enter) to a code block, the multiple lines are not preserved.
https://user-images.githubusercontent.com/96476/169887950-bdf9213a-93c5-43e6-9096-f7945a19bba9.mp4
Which browser was this experienced in? Are any special extensions installed?
Any browser. No, special extensions.
How can we reproduce the bug on our side?
With the default example editor, type:
Line 1<Shift + Enter>
Line 2
And then use the Mod + Alt + C shortcut to convert the paragraph into a code block (or use the code block toolbar button).
Can you provide a CodeSandbox?
n/a
What did you expect to happen?
Line breaks should be preserved: the code block should have multiple lines.
Anything to add? (optional)
No response
Did you update your dependencies?
- [X] Yes, I’ve updated my dependencies to use the latest version of all packages.
Are you sponsoring us?
- [X] Yes, I’m a sponsor. 💖 (on behalf of Doist)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@bdbch This issue still exists, do you think this could be reopened, and possibly some attention?
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days
bump
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days
@bdbch This is still happening.
Can we have a label that prevents github-actions from closing an issue that represents a real valid bug?