Code block rendering bug for multiple line-breaks

  • Bear Version: macOS 2.9.2 (14657) and iOS 2.9.2 (14658)
  • OS Version: macOS Tahoe 26.5.2 and iOS 26.5.2
  • What were you doing: Opening a note with a code block
  • What feature did you use: code block
  • What happened: code block had 2 empty rows, resulting in rendering bug
  • What did you expect to happen: one single code block

Code blocks with more than a single blank row often, but not always, renders incorrectly. It happens often enough to be jarring. I am currently working around it by removing extra empty rows, but modern Python code is commonly formatted with 2 blank rows between functions etc., so the workaround is not ideal.

  • Image 000: the problem
  • Image 001: Placing the cursor inside the code block does not fix the render
  • Image 002: Removing the extra blank row fixes the rendering issues

Thanks for reporting this issue.
Any chance you can provide a note reporting this issue?

I’ve created a test-file where the issue replicated instantly on end. It manifests after leaving and entering the note a few times, especially when scrolling down.

Test File.md (1.7 KB)

1 Like