RickStrahl / MarkdownMonster

An extensible Markdown Editor, Viewer and Weblog Publisher for Windows
https://markdownmonster.west-wind.com
Other
1.59k stars 236 forks source link

Cursor appears in wrong position when text in the editor is italicized. #1149

Open pa-0 opened 2 weeks ago

pa-0 commented 2 weeks ago

Picture > 1000 words:

image

Notice the discrepancy between where highlighting begins between the matched selections and original selection. Also note that this effect spans beyond just highlighting. When typing, the cursor appears in one place (misleadingly) whereas typed text appears 2 spaces before the cursor. For the first few seconds of typing, I made a mess of the page before I realized what was going on 😆

pa-0 commented 2 weeks ago

Closing this. I misadvertently chose Nerd Font of type "Proportional" instead of "Mono" so this was my fault. Apologies!

pa-0 commented 2 weeks ago

On a separate note, and I will create a separate issue for this if you like, but as a feature request, it would be nice if HTML meant to be parsed in Preview mode (rather than displayed as raw HTML) were excluded from the Markdown WSIWYG styling.

pa-0 commented 5 days ago

I spoke too soon on this. Even with a true mono font set for the Editor, the moment something is formatted as italic, i.e., The title of the book is *Moby Dick*, the caret and selection highlighting in the editor becomes off by 1 or 2 characters.