Switching between Markdown and WYSIWYG editor adds an addtional new line inside math expressions
The problem is best explained by watching the video:
Environment
Joplin version: 2.8.8 Platform: Ubuntu 22.04
Steps to reproduce
- While in the markdown editor write a math expression between $$ $$ anywhere in the document
- Now switch to the WYSIWYG editor and add additional text outside the math expression.
- Switch back to the markdown editor and notice that a additional line was automatically added inside the $$ $$.
- Repeat step 2-3 and every time a additional new line will be added inside the $$ $$.
Describe what you expected to happen
The additional new line should not be added.
Logfile
Let me know if you need a logfile and I will provide one.
I can confirm this is still an issue in Joplin 2.9.4 (built from source).
Also happens with code blocks ```.
There are tests that seem to pass that should be catching this: https://github.com/laurent22/joplin/blob/dev/packages/app-cli/tests/html_to_md/mathjax_block.md?plain=1
I noticed that the switching between Markdown and WYSIWYG has nothing to do with it. Just writing something in the WYSIWYG editor adds these new lines. So if I create a new note and start writing in the WYSIWYG editor and after minutes switch to the Markdown editor I will find something like this wherever I have code or math expressions:
$$
a + b
$$
And not even the "external editing" feature can prevent this problem. This is really bad.
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.
The problem remains, issue should stay open.
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.
The problem remains, issue should stay open.
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.
The problem remains, issue should stay open.
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, feel free to create a new issue with up-to-date information.
This bug is the main reason why I don't use the WYSIWYG editor anymore. All of my notes end up being filled with empty lines.