damiankorcz / Prism-Theme

A Comprehensive, Highly-Customisable and Elegant Light/Dark Theme for Obsidian.md
https://www.buymeacoffee.com/DamianKorcz
MIT License
376 stars 13 forks source link

[Bug] Cursor spacing is off when bullet has text and cursor is at beginning of line in live preview #94

Closed mbentley closed 1 year ago

mbentley commented 1 year ago

Describe the bug When you have a bulleted list, the cursor location appears further left than expected. It looks like there is an extra space in front of the text. This occurs in editing live preview mode.

To Reproduce Steps to reproduce the behavior:

  1. Create a bulleted list
  2. Move the cursor to the beginning of the line (after the bullet itself)
  3. See that it looks like there is a space but there isn't.

Expected behavior I would expect that the cursor would be directly in front of the first character

Screenshots

bullets

Setup Information

Additional context

I've temporarily added a snippet to work around the issue:

.markdown-source-view.mod-cm6 :is(.cm-formatting-list-ul, .cm-formatting-list-ol) {
  padding-right: unset;
}
damiankorcz commented 1 year ago

Hi @mbentley, This issue should now be resolved in Prism 3.0.2.