Describe the bug
When navigating forward through text using option + right arrow, the cursor jumps to the end of the next word. But when some inline math is reached, the cursor jumps right to the end of the document.
To Reproduce
Open new file.
Type 'Test. $2+2=4$. Test.' on the first line.
Add several line breaks.
Type 'Test.' at the bottom of the document.
Put cursor at the start of the document.
Press option + right arrow twice.
The cursor will be at the end of the document.
If the document is long, it is obviously very frustrating having to re-find one's place.
Expected behavior
The inline math should be expanded, and the cursor should jump 'into' it, and navigate through it word by word with each subsequent press of the right arrow. (Which is what it does if one clicks into the inline math block and then presses option + right arrow.)
At the very least, the cursor should jump to the end of the inline math. (Incidentally, when navigating backwards with option + left arrow, this is essentially what happens: the cursor jumps to the start of the inline math. Ideally, when going this way, it would jump into the inline math, and navigating through it word by word.)
Screenshots / Screencasts
No need.
Sample Markdown File
Attached.
Navigation Test.md
Desktop (please complete the following information):
Typora Version
e.g: 1.12.2
Additional context
N/A
Searched existing issues to avoid creating duplicates.
Confirmed that it can be reproduced in built-in themes without customized css.
If it only exists in 3rd party themes or css, you can still report it, but please attach the theme target or the css file. We may not "fix" it, if it is caused by 3rd party themes or css styles that we cannot support.
Searched http://support.typora.io/
Describe the bug
When navigating forward through text using option + right arrow, the cursor jumps to the end of the next word. But when some inline math is reached, the cursor jumps right to the end of the document.
To Reproduce$2+2=4$ . Test.' on the first line.
Open new file.
Type 'Test.
Add several line breaks.
Type 'Test.' at the bottom of the document.
Put cursor at the start of the document.
Press option + right arrow twice.
The cursor will be at the end of the document.
If the document is long, it is obviously very frustrating having to re-find one's place.
Expected behavior
The inline math should be expanded, and the cursor should jump 'into' it, and navigate through it word by word with each subsequent press of the right arrow. (Which is what it does if one clicks into the inline math block and then presses option + right arrow.)
At the very least, the cursor should jump to the end of the inline math. (Incidentally, when navigating backwards with option + left arrow, this is essentially what happens: the cursor jumps to the start of the inline math. Ideally, when going this way, it would jump into the inline math, and navigating through it word by word.)
Screenshots / Screencasts
No need.
Sample Markdown File
Attached.
Navigation Test.md
Desktop (please complete the following information):
Typora Version
e.g: 1.12.2
Additional context
N/A