Structural Formulas for Chemistry

Since there are already things like abc.js for music notation and mathjax for theoretical formula notion, there could be something that displays molecules graphically, like structure formulae. Simpler examples would look like that:

4 Likes

I don’t know anything about chemistry. I’m just checking, are you aware of Mermaid graphs, which is already supported? Can they make the kind of graphs you are thinking about?

As far as I see, unfortunately no. Mermaid makes graphs while what I need is a graphic/symbolic depiction of chemicals like methane in the example picture.

But thanks for your effort.

1 Like

This should be possible to implement via this library

1 Like

You could also use the Tikz-Jax-Plugin, that gives access to the chemfig package

1 Like

Yes here in the latest version 0.4.0 of the Chem plugin, I’ve integrated RDKit.js for structure rendering.