1943time / inkdown

A WYSIWYG Markdown editor, improve reading and editing experience. and generate your Markdown files into online documents in the easiest and fastest way.
https://www.inkdown.me
GNU Affero General Public License v3.0
849 stars 35 forks source link

Caret position after the closing `$` in inline math #43

Closed chen-yingfa closed 5 months ago

chen-yingfa commented 5 months ago

I wish that after enter the closing $, the caret position should be placed after this character, but currently the caret is positioned before the closing $.

1943time commented 5 months ago

This behavior is to clearly inform the user that a format conversion has been performed, and you can use the right arrow key to detach it after the conversion.

chen-yingfa commented 5 months ago

I get your reason, but I think this behavior is undesirable because most editors place the caret after the closing character (e.g., Typora and Obsidian). I think if the user enters a $, the user likely knows that it causes a conversion. At least, is it possible to have an option for the user to choose to place the caret after the closing $?

1943time commented 5 months ago

I can add this feature first, but I think it will cause some trouble for people who don't use inline formulas. In future versions, I will convert in line formulas to configurable items