joplin icon indicating copy to clipboard operation
joplin copied to clipboard

Codeblock continues endlessly in editor

Open Schlaumra opened this issue 1 year ago • 1 comments

Today I encountered a problem with the plaintext editor. I wrote normally and everything seems to work perfectly. Until I opened the WYSIWYG Editor and changed something. After I switched back to the normal editor the view has been distorted. The codeblock continues to the end of the document. In the rendered view everything seems normal.

screenshot

I noticed the problem has to do something with the ordered list with a padded unordered list before the codeblock. (Not completely visible in the screenshot) I copied it in another note and tried it on another pc, it seems to happen every time. I tried it on MacOS and Linux.

Tried it also with this:

1.  test
    - test

```ts
test note used not correct symbol for codeblock
```

sdfsdf

Same behaviour. IMPORTANT: There need to be 2 spaces before the text in the ordered list (caused by the WYSIWYG editor)

Environment

Joplin 2.8.8 (prod, darwin) and Joplin 2.8.8 (prod, linux)

Steps to reproduce

  1. Open the editor
  2. Create a ordered list with a padded unordered list
  3. After that create a codeblock
  4. Switch to the WYSIWYG editor and change something or add 2 space between 1. text
  5. Switch back

Describe what you expected to happen

The codeblock continues until the 3 `

Schlaumra avatar Jul 06 '22 19:07 Schlaumra

I tested this with the CodeMirror 6 editor (what's being used in this PR and didn't experience the issue. As such, an eventual migration from CodeMirror 5 to CodeMirror 6 in the desktop app might fix this issue.

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 Aug 27 '22 16:08 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 Sep 04 '22 16:09 github-actions[bot]