I'm not sure I'm posting this in the right place -- I'm not very tech savvy so please forgive me in case.
So, I'm using Joplin with LaTeX code a lot and have been seeing very often and in various versions that whenever a LaTeX command begins with "\r" (for example, \rangle or \right etc), the "\r" gets changed into a "return to the next line". This happens when I synchronize on a different terminal and from there, of course, it spreads everywhere.
Unfortunately, it does not happen always, so it's not 100% reproducible, but it does happen a lot.
When you create a new topic, the following shows up in the text box:
[SCROLL AND READ BEFORE POSTING]
For bug reports, please post them on GitHub - Issues · laurent22/joplin · GitHub
If you post a bug report here, we cannot track it and there's a chance it won't be looked at and fixed.
For other support queries please indicate:
The version you are using. LATEST VERSION is not a version number!
If it is a sync issue, please let us know what you are syncing with.
If you report a problem with upgrading, please let us know both versions (from/to).
If you report a problem with the editor, please tell us which editor you are using (WYSIWYG/Markdown).
Posts that do not at least state the version number and operating system will not be answered.
e.g. you didn't mention the Joplin version, nor which editor you are using. e.g. I can't reproduce your problem. So your env must be different to mine, but how would I know, because you didn't tell us anything to actually help you. That's why we use this template. But don't worry, almost everyone ignores it.
versions: all versions I used so far until the one I'm using now:
Joplin 2.1.8 (prod, win32)
Client ID: 98ded0c341a4439d93f280948b2d612c
Sync Version: 2
Profile Version: 39
Keychain Supported: Yes
Revision: 94ea177b7
I'm syncing between Windows and Linux Mint 20.1 machines
Thank you for following up on this.
I'm always using the markdown editor -- I've never caught up with the WYSIWYG thing.
In fact, it is the markdown code that gets changed: "\r" disappear and get replaced by a "return" (i.e., new line).
Anyway, don't bother: I believe that whatever I'm seeing is due to a combination of factors that make it very hard to reproduce on other machines. (As stated earlier, it's not 100% reproducible for me either.) This won't keep me away from my beloved Joplin!
Well, we can still try to reproduce it. The next time it happens, try to remember what caused it. e.g. Switching from a different folder or note to the note that includes the KaTeX....
But I was able to get some weird result. @laurent I remember there was a commit at one point for KaTeX and WYSIWYG and I think it had to do with \r.
Then I switched back and forth to other notebooks and notes. Nothing. All good.
Then I switched to the WYSIWYG editor and double-clicked the formula. After not changing anything but only clicking ok and switching back to the Markown editor, the following is shown instead the one liner above: