Joplin app renders a portion of formula source code before the correct rendering:

Joplin version: Joplin 1.0.194 (prod, darwin)
Platform: Mac OS 10.15.3 (19D76)
I can confirm this. It only happens for inline Katex:

On file ReactNativeClient/lib/joplin-renderer/MdToHtml/rules/katex.js Line 246:
return `<span class="joplin-editable"><pre class="joplin-source" data-joplin-source-open="$" data-joplin-source-close="$">${latex}</pre>${renderToStringWithCache(latex, options)}</span>`;
<pre class="joplin-source" data-joplin-source-open="$" data-joplin-source-close="$">${latex}</pre> renders the source and then ${renderToStringWithCache(latex, options)} renders the formula. Almost looks like it was intentional. Removing the first part fixes the issue. Any idea why it was there?
Maybe it was debugging code that was not removed. Or maybe it has something to do with the new WYSIWYG editor. Laurent would know for sure.
On file
ReactNativeClient/lib/joplin-renderer/MdToHtml/rules/katex.jsLine 246:return `<span class="joplin-editable"><pre class="joplin-source" data-joplin-source-open="$" data-joplin-source-close="$">${latex}</pre>${renderToStringWithCache(latex, options)}</span>`;
<pre class="joplin-source" data-joplin-source-open="$" data-joplin-source-close="$">${latex}</pre>renders the source and then${renderToStringWithCache(latex, options)}renders the formula. Almost looks like it was intentional. Removing the first part fixes the issue. Any idea why it was there?
I can confirm this on Electron client as well.
Confirm this.
Joplin 1.0.195 (prod, darwin)
That should be fixed on master.
@laurent22 can confirm fixed on master. Any chance to get another release cut with this? The bug made it to my iPhone :(
Same issue, but on Manjaro Linux, thanks for fix and waiting for the next release!
Should be fixed from next version