joplin icon indicating copy to clipboard operation
joplin copied to clipboard

Switching between Markdown and WYSIWYG editor adds an addtional new line inside math expressions

Open magical-heyrovsky opened this issue 3 years ago • 1 comments

The problem is best explained by watching the video:

2022-09-05_16-19-05.webm

Environment

Joplin version: 2.8.8 Platform: Ubuntu 22.04

Steps to reproduce

  1. While in the markdown editor write a math expression between $$ $$ anywhere in the document
  2. Now switch to the WYSIWYG editor and add additional text outside the math expression.
  3. Switch back to the markdown editor and notice that a additional line was automatically added inside the $$ $$.
  4. 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.

magical-heyrovsky avatar Sep 05 '22 14:09 magical-heyrovsky

I can confirm this is still an issue in Joplin 2.9.4 (built from source).

Also happens with code blocks ```.

SuperSamus avatar Sep 22 '22 22:09 SuperSamus

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.

magical-heyrovsky avatar Sep 24 '22 13:09 magical-heyrovsky

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.

github-actions[bot] avatar Nov 01 '22 16:11 github-actions[bot]

The problem remains, issue should stay open.

magical-heyrovsky avatar Nov 01 '22 16:11 magical-heyrovsky

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.

github-actions[bot] avatar Dec 03 '22 16:12 github-actions[bot]

The problem remains, issue should stay open.

magical-heyrovsky avatar Dec 03 '22 16:12 magical-heyrovsky

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.

github-actions[bot] avatar Jan 03 '23 16:01 github-actions[bot]

The problem remains, issue should stay open.

magical-heyrovsky avatar Jan 03 '23 22:01 magical-heyrovsky

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.

github-actions[bot] avatar Feb 04 '23 16:02 github-actions[bot]

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.

github-actions[bot] avatar Feb 11 '23 16:02 github-actions[bot]

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.

chronos1970 avatar May 11 '23 08:05 chronos1970