White space when rendering katex environment commands

Operating system

Windows

Joplin version

2.13.2

Desktop version info

Joplin 2.13.12 (prod, win32)

Client ID: 4e5c773b8daa4b88ad334e2c36192d61
Sync Version: 3
Profile Version: 44
Keychain Supported: Yes

Revision: e027cdc

Editor

Rich Text Editor

What issue do you have?

When writing mathematical functions it is common (to me at least) to create a block of $\gdef...$ katex functions in order to setup the environment and have useful commands in markdown. When I do so, in the rich text editor and in pdf renders I see white lines where those commands are. Of course this bothers me and I would like to know if I am missing something or doing something wrong. Thanks in advance.

Screenshots

Try putting them in a block math region:

$$
\gdef\vectwo#1#2{\begin{pmatrix}#1\\#2\end{pmatrix}}
\gdef\Bezier{{\small\textsf{Bézier}}}
\gdef\ones{\mathbf{1}}
\gdef\R{\mathbb{R}}
$$

This still produces blank space, but not as much.

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