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 68 forks source link

Mesylate Abbreviation Incorrect #137

Open starmaid opened 2 years ago

starmaid commented 2 years ago

image

Expected Behavior: Mesylate group abbreviated with Ms

Observed Behavior: Mesylate is being abbreviated with an acetate Ac symbol. I've tried a few combinations with different atoms connecting the mesylate to the rest of the molecule, but it seems to always abbreviate with Ac.

NTdingsir commented 1 year ago

pls fit this issue in time. it looks quite odd.

nmasso-sri commented 9 months ago

Fix could be in here /src/DrawerBase.js : initPseudoElements(). Still not sure what the fix is.