TikZJax Chemfig diagram not rendering properly

Things I have tried

Searched through the forum

What I’m trying to do

When I use the TikZJax plugin to make chemfig diagrams in Obsidian, the upper margin of the diagram is consistently cropped. Example of code and generated image below:
image

The uppermost H atom is cropped

\usepackage{chemfig}
\begin{document}
\chemfig{C*6((-H)=N-C(-H)=N-C(-H)=C(-H)-)}
\end{document}

I know this is a pretty obscure plugin, but if anybody knows how to fix this / work around it, it would be much appreciated.

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