Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing in the WYSIWYG editor adds addtional new lines inside code and math expressions #6822

Closed
magical-heyrovsky opened this issue Sep 5, 2022 · 13 comments · Fixed by #8442
Labels
bug It's a bug stale An issue that hasn't been active for a while...

Comments

@magical-heyrovsky
Copy link

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 magical-heyrovsky added the bug It's a bug label Sep 5, 2022
@personalizedrefrigerator
Copy link
Collaborator

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

@SuperSamus
Copy link

Also happens with code blocks ```.

@personalizedrefrigerator
Copy link
Collaborator

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

@magical-heyrovsky
Copy link
Author

magical-heyrovsky commented Sep 24, 2022

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 magical-heyrovsky changed the title Switching between Markdown and WYSIWYG editor adds an addtional new line inside math expressions Writing in the WYSIWYG editor adds addtional new lines inside code and math expressions Sep 24, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 1, 2022

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 github-actions bot added the stale An issue that hasn't been active for a while... label Nov 1, 2022
@magical-heyrovsky
Copy link
Author

The problem remains, issue should stay open.

@github-actions github-actions bot removed the stale An issue that hasn't been active for a while... label Nov 2, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Dec 3, 2022

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 github-actions bot added the stale An issue that hasn't been active for a while... label Dec 3, 2022
@magical-heyrovsky
Copy link
Author

The problem remains, issue should stay open.

@github-actions github-actions bot removed the stale An issue that hasn't been active for a while... label Dec 4, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jan 3, 2023

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 github-actions bot added the stale An issue that hasn't been active for a while... label Jan 3, 2023
@magical-heyrovsky
Copy link
Author

The problem remains, issue should stay open.

@github-actions github-actions bot removed the stale An issue that hasn't been active for a while... label Jan 4, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2023

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 github-actions bot added the stale An issue that hasn't been active for a while... label Feb 4, 2023
@github-actions
Copy link
Contributor

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.

@chronos1970
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug stale An issue that hasn't been active for a while...
Projects
None yet
4 participants