Obsidian-Code-Styler icon indicating copy to clipboard operation
Obsidian-Code-Styler copied to clipboard

Bug: Code Block Unwraps on Reading Mode

Open rgvillanueva28 opened this issue 1 year ago • 1 comments

Code Block Unwraps on Reading Mode

On reading mode, the code block unwraps even when the unwrap code block lines settings is disabled.

As an example, the image below shows the unwrapped lines in reading mode: image The image below is the output on editing mode: image

Here is an image on reading mode with the plugin disabled: image

Steps to reproduce

``` title:response hl:5
POST /webtools/control/createUserLogin HTTP/1.1
Host: ofbiz:8443
Cookie: JSESSIONID=76A7BCC53C2B9BF49B21F99D2D8CA5D5.jvm1; OFBiz.Visitor=10000

enabled=&partyId=&userLoginId=test&currentPassword=password&currentPasswordVerify=password&passwordHint=&requirePasswordChange=N&externalAuthId=&securityQuestion=&securityAnswer=
```

Removing title:response hl:5 still unwraps the code block.

Expected behaviour

Code block should be wrapped.

Current behaviour

Code block is unwrapped.

Environment

  • Plugin Version: 1.1.7
  • Obsidian Version: 1.6.7
  • Platform: Desktop
  • OS: Windows
  • Theme: Obsidian Theme
  • CSS Snippets: None

rgvillanueva28 avatar Sep 17 '24 11:09 rgvillanueva28

Can you take a screenshot of the settings which causes this? I'm currently doing a refactor so would be good to get this fix in!

mayurankv avatar Jan 27 '25 13:01 mayurankv

This issue is stale because it has been open 60 days with no activity.

github-actions[bot] avatar Nov 24 '25 03:11 github-actions[bot]