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

Inline Code does not support Superscript and Subscript #10657

Open
nikhilkomakula opened this issue Jun 25, 2024 · 1 comment
Open

Inline Code does not support Superscript and Subscript #10657

nikhilkomakula opened this issue Jun 25, 2024 · 1 comment
Labels
bug It's a bug

Comments

@nikhilkomakula
Copy link

Operating system

macOS

Joplin version

2.14.22

Desktop version info

Joplin 2.14.22 (prod, darwin)

Client ID: 05204d562d2e4ff69f62b1782fe0b3ab
Sync Version: 3
Profile Version: 46
Keychain Supported: Yes

Revision: e579eb9

Backup: 1.4.0

Current behaviour

  1. In a Note (call it Note1), create some superscript text like x2 (x-square) and mark it with inline code. It shows up just fine here.
  2. Now switch to another Note (call it Note2) under the same or different Notebook.
  3. Switch back to Note1, and now you see the text as "x2".

Expected behaviour

Text marked as inline code should work as-is even if it contains superscript or subscript in the rich text editor.

Logs

No response

@nikhilkomakula nikhilkomakula added the bug It's a bug label Jun 25, 2024
@Daeraxa
Copy link
Collaborator

Daeraxa commented Jul 3, 2024

Took me a second to understand this as you hadn't escaped the <sup> in point 3. so it was rendered.

As the app is Markdown based I'm not actually sure there is a valid way to get superscript (or other formatting) within code blocks like that in which case maybe a non-conversion needs to be added and it stays as html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug
Projects
None yet
Development

No branches or pull requests

2 participants