reymond-group / smilesDrawer

A small, highly performant JavaScript component for parsing and drawing SMILES strings. Released under the MIT license.
https://smilesdrawer.rocks
MIT License
434 stars 67 forks source link

Salts drawing hydrogen incorrectly #84

Open CreativeBlock opened 5 years ago

CreativeBlock commented 5 years ago

When there is a salt, some hydrogen atoms are not displayed. This is very inconsistent I think this is a bug.

How it should be drawn: gifgen0009n10se

How it is drawn: canvas

This is somewhat fixed by putting the salt at the beginning of the smiles string; however, "Cl" does not display the hydrogen.