Providing chemistry supports. Rendering SMILES strings into chemistry structures.
This update provides rendering of inline SMILES, in both LivePreview mode and Reading mode. The inline blocks can be embeded into tables and callouts. You can also set your own prefix for the inline syntax.
`$smiles=CCCCCC`
Now we have a new structure renderer RDKit.js. There are some differences between it and the existing SmilesDrawer core and you can choose one based on your use case.
Feature | RDKit.js | SmilesDrawer |
---|---|---|
Render molecules | √ | √ |
Render reactions | ⭕ - poor theming | √ |
Radical support | √ | × |
Chiral carbon | √ | √ |
Allene like chiralty | √ | × |
Heteroatom bond color | cut-off | gradients |
[!Note]
If you want to utilize RDKit.js, Chem plugin would try to fetchRDKit_minimal.js
andRDKit_minimal.wasm
files from release. If you have problem connecting GitHub, please download them manully and put them in the directory[yourvault]/.obsidian/plugins/chem/rdkit/
for recognization and loading.
[!Warning]
Due to file system issue, the iOS platform can't load asset resources, so I banned the rdkit loading for iOS and try to introduce unpkg distribution in the coming days.
Full Changelog: https://github.com/Acylation/obsidian-chem/compare/0.3.0…0.4.0