-
-
Notifications
You must be signed in to change notification settings - Fork 31
Bug: Code line gets cut off slightly, but only if starts with "C:" and only if that's the only line. #352
Description
I had set the language border for 6, and I had a powershell codeblock that starts with "C:". Part of that C gets cut off.
Describe the bug
I tested this with other codeblocks: it doesn't matter what language it is, the same behavior applies, UNLESS it's a language that is not recognized (like ```cmd)
If another line is added to the code even if that starts with "C:", then it's shifted and the problem disappears.
Also, reducing the border will fix the issue, the border can be at most 5.
Steps to reproduce
I tried disabling all snippets and also other plugins, the problem persists.
Here's my original codeblock that caused the issue:
C:\Windows\System32\cmd.exe /k "%USERPROFILE%\.windot\term_cmd\profile.cmd"Expected behaviour
I would expect that the rows would look the same independent of what the text is.
Current behaviour
If starting the only line with C:, part of the left side of the C gets cut off
Environment
- Plugin Version: 1.1.7
- Obsidian Version: 1.10.6
- Platform: Desktop
- OS: Windows
- Theme: Personal, but was affected even when theme disabled
- CSS Snippets: Yes, but tested without also -> issue was still there.
Screenshots
Additional context
No console errors, I think the plugin doesn't think there's an error.

