# Why does joplin keep messing my equations

**URL:** <https://discourse.joplinapp.org/t/why-does-joplin-keep-messing-my-equations/45589>\
**Category:** Support\
**Created:** [27 May 2025 13:21 UTC](https://discourse.joplinapp.org/t/why-does-joplin-keep-messing-my-equations/45589 "2025-05-27T13:21:06Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lukas\_Reeves](https://avatars.discourse-cdn.com/v4/letter/l/dec6dc/32.png) [@Lukas\_Reeves](https://discourse.joplinapp.org/u/Lukas_Reeves)\
**Post date:** [27 May 2025 13:21 UTC](https://discourse.joplinapp.org/t/why-does-joplin-keep-messing-my-equations/45589/1 "2025-05-27T13:21:06Z")

</div>

### Operating system

Linux

### Joplin version

3.3.12

### What issue do you have?

I write down my equations in the correct format and then it messes it all up, it's not the first time it happens.

It separates the equations from the $ and it inserts a bunch of \. it inserted the \<sup tag as well. Then i have to fix all the equations.

### Screenshots

 ![Screenshot From 2025-05-27 10-14-25.png](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/3X/2/d/2dda21ca4c06d952e7924d7435b91936fc96e88b.png)

---

<div class="post-metadata">

**Author:** ![bwat47](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/bwat47/32/25073_2.png) [@bwat47](https://discourse.joplinapp.org/u/bwat47)\
**Post date:** [27 May 2025 13:24 UTC](https://discourse.joplinapp.org/t/why-does-joplin-keep-messing-my-equations/45589/2 "2025-05-27T13:24:55Z")

</div>

Joplin is based on markdown, and backslash is used as an escape character in markdown.

If you have text that contains a backslash (and you want ensure that the backslash is rendered when looking at the rendered markdown preview), there sometimes needs to be another backslash to escape it.

For example `$In\frac` may be rendered as: $Infrac

But `$In\\frac` will be rendered as $In\frac

So, it will look odd in the markdown editor view, but should look correct in the rendered view.

If seeing the extra backslashes in the editing view makes you feel icky (as it does for me as well xD) you can put the equations in inline code by surrounding them with backticks:

```auto
`$In\frac`

```

Alternately, a code block could be used (three backticks above and below the text)

Text that's formatted as code (inline code or code block) will be displayed exactly as is, with no extra escape characters needed.

---

<div class="post-metadata">

**Author:** ![Lukas\_Reeves](https://avatars.discourse-cdn.com/v4/letter/l/dec6dc/32.png) [@Lukas\_Reeves](https://discourse.joplinapp.org/u/Lukas_Reeves)\
**Post date:** [27 May 2025 14:16 UTC](https://discourse.joplinapp.org/t/why-does-joplin-keep-messing-my-equations/45589/3 "2025-05-27T14:16:51Z")

</div>

Writing it as code displays exactly as it is but I want it to be displayed as the equation form and not be changed by joplin. Example:

 ![asdasdsa](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/3X/6/b/6b3833ba9c554b76b4c73e9e3bfb7a9c3ac647a5.png)

All my equations were correct like that then joplin changed it all.

---

<div class="post-metadata">

**Author:** ![bwat47](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/bwat47/32/25073_2.png) [@bwat47](https://discourse.joplinapp.org/u/bwat47)\
**Post date:** [27 May 2025 14:25 UTC](https://discourse.joplinapp.org/t/why-does-joplin-keep-messing-my-equations/45589/4 "2025-05-27T14:25:45Z")

</div>

gotcha- is there any particular action in joplin that seems to trigger this happening?

I tested entering an equation here and then doing things such as switching between the markdown and rich text editor, and making changes to the note in the rich text editor and it didn't seem to mess with the equation formatting at all

---

<div class="post-metadata">

**Author:** ![Lukas\_Reeves](https://avatars.discourse-cdn.com/v4/letter/l/dec6dc/32.png) [@Lukas\_Reeves](https://discourse.joplinapp.org/u/Lukas_Reeves)\
**Post date:** [27 May 2025 14:37 UTC](https://discourse.joplinapp.org/t/why-does-joplin-keep-messing-my-equations/45589/5 "2025-05-27T14:37:18Z")

</div>

Yes, i think i figured out what triggers it. It seems to happen when i have the $ on different lines, between the equation. Example:

```auto
$
equation
$

```

Then i make changes to my tables using the rich text editor. I guess i will just write the equations in the same line instead of separating it.

---

<div class="post-metadata">

**Author:** ![bwat47](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/bwat47/32/25073_2.png) [@bwat47](https://discourse.joplinapp.org/u/bwat47)\
**Post date:** [27 May 2025 14:47 UTC](https://discourse.joplinapp.org/t/why-does-joplin-keep-messing-my-equations/45589/6 "2025-05-27T14:47:58Z")

</div>

Try doing two dollar signs instead:

```auto
$$
Equation
$$

```

---

<div class="post-metadata">

**Author:** ![Lukas\_Reeves](https://avatars.discourse-cdn.com/v4/letter/l/dec6dc/32.png) [@Lukas\_Reeves](https://discourse.joplinapp.org/u/Lukas_Reeves)\
**Post date:** [27 May 2025 14:54 UTC](https://discourse.joplinapp.org/t/why-does-joplin-keep-messing-my-equations/45589/7 "2025-05-27T14:54:20Z")

</div>

Yes, that's another alternative. I was using singular dollar signs because i wanted certain equations to not be centered

---

<div class="post-metadata">

**Author:** ![muzak](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@muzak](https://discourse.joplinapp.org/u/muzak)\
**Post date:** [27 May 2025 17:31 UTC](https://discourse.joplinapp.org/t/why-does-joplin-keep-messing-my-equations/45589/8 "2025-05-27T17:31:44Z")

</div>

I replicated this issue and cause on the same OS and Joplin version. In the meantime, instead of using the problematic Rich Text editor, you can keep dollar signs in place how you want by using Markdown plugins for table management:

- [Table Formatter Plugin](https://joplinapp.org/plugins/plugin/net.rmusin.joplin-table-formatter/) is developed by a Joplin team member.
- [Enhancement](https://joplinapp.org/plugins/plugin/com.septemberhx.Joplin.Enhancement/) is a multi-purpose plugin with a `Render markdown table to editable table in markdown editor` feature.
- [Ez Table](https://joplinapp.org/plugins/plugin/kensam.joplin.plugin.eztable/) and [MultiMarkdown Table Tools](https://joplinapp.org/plugins/plugin/joplin.plugin.MultiMarkdownTableTools/) are dedicated to table management.

---

<div class="post-metadata">

**Author:** ![Imperial\_Squid](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/imperial_squid/32/15471_2.png) [@Imperial\_Squid](https://discourse.joplinapp.org/u/Imperial_Squid)\
**Post date:** [3 June 2025 00:56 UTC](https://discourse.joplinapp.org/t/why-does-joplin-keep-messing-my-equations/45589/9 "2025-06-03T00:56:15Z")

</div>

Rather than trying to use `$...$` to align the equations to the left as inline text, you could align them within a `$$...$$` block using LaTeX's built in `flalign` environment to align everything flush with the left.

There's a post that goes into more detail [here](https://tex.stackexchange.com/questions/14080/use-flalign-or-alignat-or-align-or-similar-environment-to-align-to-the-left)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/3X/1/c/1c948e33314e232a0927789508474d8624f4270b.png) [@system](https://discourse.joplinapp.org/u/system)\
**Post date:** [3 July 2025 00:56 UTC](https://discourse.joplinapp.org/t/why-does-joplin-keep-messing-my-equations/45589/10 "2025-07-03T00:56:57Z")

</div>

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