PDF export of notes containing KaTeX or mermaid diagrams come out blank

Version

Joplin for Desktop

Copyright © 2016-2020 Laurent Cozic
Joplin 1.3.2 (prod, win32)

Client ID: 895be4b0ae864dfea003d93c0140babe
Sync Version: 2
Profile Version: 34
Keychain Supported: Yes

Revision: 12db3d20e (master)

OS

Windows 8.1

Issue

PDF export of notes containing KaTeX or mermaid diagrams come out blank.
Notes containing plain markdown are exported just fine but if you put a minimum amount of either KaTeX or a mermaid diagram in, then an empty PDF is exported.

Control example

# Cum gravis fronde

## Feroxque haec domus nuper ignes fluctibus

Lorem markdownum Abantiades Venus. Quid nona iacent propago ad quinque tangam
secum, in pedum credule ingeniis, ille cui mersa secura. Medias quibus, prolem,
est per secto si inplevere, doctas corpus rogando. Contra meritis.

Nunc somni primus oris addidit linguam et vulnere in pudet colla. Non reliquit
illum hi miserum quidem fremit tergaque marmoris fugam inmergitque regnum
agebat. Illo manibus flamma etiamnum et pomaria natisque generis inquit et cum
meorum in quidem simul!

Yields the following file: Test_PlainMD.pdf (38.3 KB)

Example of the Issue

# Cum gravis fronde

## Feroxque haec domus nuper ignes fluctibus

Lorem markdownum Abantiades Venus. Quid nona iacent propago ad quinque tangam
secum, in pedum credule ingeniis, ille cui mersa secura. Medias quibus, prolem,
est per secto si inplevere, doctas corpus rogando. Contra meritis.

Nunc somni primus oris addidit linguam et vulnere in pudet colla. Non reliquit
illum hi miserum quidem fremit tergaque marmoris fugam inmergitque regnum
agebat. Illo manibus flamma etiamnum et pomaria natisque generis inquit et cum
meorum in quidem simul!


# Matrix

$$
\begin{pmatrix}
    a & b & c\\
    a & b & c\\
    a & b & c\\
    a & b & c
\end{pmatrix}
$$

Produces the following file: Test_withKaTeX.pdf (808 Bytes)
Which is blank.

Additional Info

In this case I am launching an instance of Joplin with a batch file with the following:

:: cd C:\Users\poopie-head\AppData\Local\Programs\Joplin
start "Course_Notes" C:\Users\poopie-head\AppData\Local\Programs\Joplin\Joplin.exe --profile C:\Users\poopie-head\Documents\Z_JoplinCourseNotes
exit

This is an instance I use for class notes

Please let me know if I can provide any more information.

Hi @poopie-head, this issue was fixed in pre release v1.3.5. if you update to the latest pre release (v1.3.9) you won't have any issue exporting.

@CalebJohn, Thank you for pointing this out! I noticed that you provided the fix for the issue, thanks for that too!
Weird thing is I stopped getting pre-release updates in ver 1.3.2. When I hit the Check for updates... I got nothing, even though Get pre-releases when checking for updates was marked.

But it's all good now. Thanks again!

Actually it was not that weird as 1.3.2 had a bug in the update checker!

Haha. Looks like I should make more of an effort to stay up to date about the tools I use. Thanks, dpoulton.