OliverBalfour / obsidian-pandoc

Pandoc document export plugin for Obsidian (https://obsidian.md)
MIT License
719 stars 60 forks source link

[Bug] Math export broken for umlauts #155

Open B4rc1 opened 2 years ago

B4rc1 commented 2 years ago

The German umlauts seem to be broken in latex export because of the conversion to HTML before feeding it into pandoc:

Document:

$$
\text{ä} x + 2
$$

PDF Output: grafik

Latex Output:

% [...] headers
\begin{document}
\maketitle

ä\[\text{ä}x + 2\]

\end{document}

Output with Export files from HTML or markdown? set to markdown: grafik

Latex Output with Export files from HTML or markdown? set to markdown

\begin{document}
\[
\text{ä} x + 2
\]
\end{document}

Obsidian Native PDF export result: grafik

My Own analisis

I think I nailed down the problem: when exporting to HTML, with Export files from HTML or markdown? set to HTML, umlaute get generated in thier own HTML elements and then overlayed like this with the text of the element directly in the element: grafik