Inline math mode does not work in latest update 2.13.8

Operating system

macOS

Joplin version

2.13.8

Sync target

File system

Editor

Rich Text Editor

What issue do you have?

The maths equations in inline mode don't display properly in either the rich text editor or after exporting the document to pdf format. Instead of the equations, the following text reads: "Cannot read properties of undefined (reading 'map')". As far as I know, inline mode worked in the earlier versions of Joplin.

Does anyone know how to fix this? Thanks

Screenshots

I can reproduce this, but only when using \begin{align} (and not \begin{align*}). I suspect it's related to numbering.

Thank you for reporting this!

Please provide the text as text so that we can copy and paste and verify

Sample:

$$
\begin{align}
    \texttt{Numbered block math}
\end{align}
$$

$\texttt{Inline math}$

From debugging, it looks like \begin{align} ... \end{align} is creating a macro in a format not recognized by Joplin's stringifyKatexOptions:

{
    '\@eqnsw': '1',
    '\myothermacro': { tokens: Array (7), numArgs: 0, ... }
}

stringifyKatexOptions expects all macros to have a .tokens property.

Reported on GitHub:

This also affects the new versions of the mobile apps.

I've created a pull request that should fix this based on the release-2.13 branch. Hopefully we can do a bug fix release for this!

Edit:
This should be fixed in the latest version:

Thank you again for reporting this!

2 Likes

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