AnubisNekhet / AnuPpuccin

Personal theme for Obsidian
GNU General Public License v3.0
1.96k stars 163 forks source link

[Bug] No wrap option for codeblocks does not work #265

Open BraydenCarlson opened 2 months ago

BraydenCarlson commented 2 months ago

Describe the bug Setting the codeblock line wrap options to "No Wrap" does not work. Words continue to be wrapped regardless of mode (edit, preview, and read).

To Reproduce Steps to reproduce the behavior:

  1. Go to Options > Style Settings > AnuPpuccin > File Editor and Markdown Elements > Codeblocks
  2. Select "No Wrap" from the dropdown for all codeblock line wrap options
  3. Create a codeblock in a note with a line length longer than the display.
  4. See that the words are wrapped and there is no horizontal scrollbar.

Expected behavior Codeblocks should not word wrap and should have a horizontal scrollbar when "No Wrap" is selected.

Screenshots image

Reading mode: image

Edit mode: image