Readable line length "breaks" code blocks

Steps to reproduce

Create a relatively wide code block:

123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890

Expected result

The code block should keep it’s width and maybe get a scroll bar or the whole document gets a scroll bar (first one would be nicer).

Actual result

The code block gets wrapped and can become very hard to read.

Environment

  • Operating system:
    Ubuntu 20.04
  • Obsidian version:
    0.8.8

Additional information

What to do in this cases is a matter of people’s preference. I don’t think it is a bug. Please, open a feature request about this.

related: Disable word wrap for code blocks?