"\" in front of "$"

Operating system

Windows

Joplin version

3.4.12

Desktop version info

Joplin 3.4.12 (prod, win32)

Device: win32, 13th Gen Intel(R) Core(TM) i7-1365U
Client ID: cf9d96ae0f284126876b5fc168c8f11d
Sync Version: 3
Profile Version: 48
Keychain Supported: Yes
Alternative instance ID: -

Revision: e9a9f68

Backup: 1.4.3
Freehand Drawing: 3.1.0
joplin-note-email: 1.0.5
Menu items, Shortcuts, Toolbar icons: 1.1.0
Note Tabs: 1.4.0
Rich Markdown: 0.16.0
Text Colorize: 1.2.5

Editor

Markdown Editor

What issue do you have?

Whenever I go through a first round of note-taking in the Markdown editor, in every instance where I use the $ sign, when I switch to Rich Text view, and toggle back to Markdown \ is auto-populated in front of every $ sign. I then have to go back and delete \ in every instance to make it look clean for e-mailing out. I wouldn't care if it did so in markdown only, but for some reason when e-mailing the note using the "joplin-note-email" plug in, those \ signs show up. I had no issues for most of the year, and I want to say this started to happen in the last two months. I do regular Joplin updates when prompted. Any advice on how to prevent this from happening? Thanks!

This appears to be intentional behavior by the rich text editor to escape the $ character to fix a bug: Desktop: Fixes #9593: Rich Text Editor: Fix including `$`s creates math blocks on save by personalizedrefrigerator · Pull Request #12398 · laurent22/joplin · GitHub

For manually removing the dollar signs before emailing, you could speed that up with regex:

  1. Open the find toolbar in the markdown editor.
  2. check the regexp box
  3. In the find box enter \\\$
  4. In the replace box enter $
  5. Click replace all and it should remove backslash escapes from dollar signs (the regex matches \$ so any instance of \$ gets replaced with just $)

Also, not quite equivalent to the note-email plugin, but I created this plugin primarily for the purpose of copying formatted text (including embedded images) into emails from the markdown editor, and it doesn't include the backslash escapes in front of dollar signs when it converts markdown to HTML: GitHub - bwat47/joplin-copy-as-html: Joplin plugin to copy selected text as either HTML or plain text

1 Like

Thank you! Maybe it’s time for someone to do a new e-mail out plug-in that can auto adjust for this.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.