streetwriters / notesnook

A fully open source & end-to-end encrypted note taking alternative to Evernote.
https://notesnook.com/
GNU General Public License v3.0
10k stars 618 forks source link

Inserting a codeblock while multiple lines are selected leads to multiple codeblocks #6321

Open streetwriters[bot] opened 3 months ago

streetwriters[bot] commented 3 months ago

I have several lines of text with linebreaks I select the lines I add a code block Each line creates a new code block I expect to have one code block including all lines inserted instead

Device information: App version: 3.0.13-9019490-desktop OS: Windows 10 64-bit Browser: Electron 29.3.1 Pro: true

seanwynwins commented 2 months ago

I'm having this issue as well on MacOS - willing to take a look at this if someone isn't already

seanwynwins commented 2 months ago

I've written a small fix for this, will submit pull request

thecodrr commented 2 months ago

@seanwynwins great!

seanwynwins commented 2 months ago

Toggling out of a codeblock back in to a paragraph doesn't work for me either, also addressed this in the changes