LaTeX not rendering \ce

WHAT IS THE BUG

LaTeX does not render chemical equations although KaTeX supports such equations. It’s even included in as a template for LaTeX block. Might be due to older KaTeX version for desktop version.

HOW TO REPRODUCE IT

THE EXPECTED BEHAVIOR

ADDITIONAL CONTEXT

Seems like version used in current desktop version is 0.13.13 although 0.16.8 is available.

SYSTEM INFORMATION

  • OS:
    MacOS Ventura 13.5
  • Device:
    MacBook Pro M1
  • Anytype Version:
    Version: 0.33.3

This issue has been fixed by the Development Team and will be implemented in an upcoming release.

2 Likes

Update: \ce works fine in LaTeX block now but still not in the Preview formula window.

@razor I applied the same patch to MenuPreviewLatex class as you did previously to BlockLatex:
const katex = require("katex"); require("katex/dist/contrib/mhchem");

yeah, thanks, I’ve merged it

1 Like