Code block not updating as expected on preview

Steps to reproduce

Write a long one line code block with syntax

Expected result

Preview shows as expected after closing&opening note

Actual result

Preview doesn’t create a scrollbar

After closing and reopening preview, preview shows as expected.
But after writing any text, preview goes back to unexpected state.


  • Operating system: Linux
  • Obsidian version: v.0.8.4

Additional information

We are making changes to the preview engine. Let me know if you still have this issue with 0.8.5. For the future, Please attach both screenshots and source example.