laurent22 / joplin

Joplin - the privacy-focused note taking app with sync capabilities for Windows, macOS, Linux, Android and iOS.
https://joplinapp.org
Other
44.99k stars 4.89k forks source link

Rich text editor: $s replaced with math expressions after switching notes #9593

Open personalizedrefrigerator opened 8 months ago

personalizedrefrigerator commented 8 months ago

Operating system

Linux

Joplin version

2.13.10

Desktop version info

Joplin 2.13.10 (prod, linux)

Client ID: 24b2a961cccf40fe8448cdc0930b6fce Sync Version: 3 Profile Version: 44 Keychain Supported: No

Revision: 973193623

Freehand Drawing: 2.7.1 RevealJS Integration: 0.6.1 Simple Backup: 1.3.4 Work tracker: 0.0.1

Current behaviour

  1. Create a new note in the rich text editor
  2. Type This is a $t^es^t$
  3. Switch to the markdown editor and back

Currently, the content is replaced with screenshot: e and last t in test are superscript

Expected behaviour

Either:

  1. The UI should show that the content surrounded in $s will be converted to math just after typing the second $.
  2. This functionality should be opt-in
    • It's possible some users are treating this as a feature — being able to quickly create math regions with $s in the rich text editor is useful.
  3. $s should be escaped and we should have some other way to create inline math in the rich text editor.
    • To my knowledge, it's only possible to create block math (with code blocks) in the rich text editor, without surrounding text in $s.

Logs

No response

personalizedrefrigerator commented 8 months ago

See also https://discourse.joplinapp.org/t/joplin-is-stripping-the-dollar-symbol/34636

laurent22 commented 8 months ago

The UI should show that the content surrounded in $s will be converted to math just after typing the second $.

At this point we won't support Typora-like edition, so what should happen is that this text is escaped when switching to Markdown so that it appears again in the same way when switching back to RTE.

Users can currently create Katex blocks from the RTE and maybe we should get inline working too, but for now Typora-like is out of scope.

github-actions[bot] commented 7 months ago

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] commented 6 months ago

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.