Releases: Acylation/obsidian-chem
0.4.0
What's Changed
- Handle empty settings object by @Acylation in #54
- Support inline smiles by @Acylation in #57
- Add options for explicit hydrogen by @Acylation in #58
- Introduce RDKit.js by @Acylation in #61
Inline SMILES
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`
Limitations
- The context menu of inline smiles are overrided by table/callouts or not yet implemented. Will find ways to solve this.
- Inline elements won't get automatically updated on settings are modified sometimes. Please close and reopen the note to apply new settings.
RDKit.js integration
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 fetch RDKit_minimal.js
and RDKit_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: 0.3.0...0.4.0
0.3.0
What's Changed
- Copy image by @Acylation in #47
- Support dataview queries and dataview js lines in
smiles
blocks by @Acylation in #48 - Update readme and docs by @Acylation in #49
Copy image
Now you can right-click on image to find Copy
feature!
Support dataview queries and dataview js lines in smiles
blocks
Enable this in the settings tab, and you can write DQL/DataviewJS to query strings as the structure feed!
Warning
Please only put trusted code for DataviewJS rendering!
Full Changelog: 0.2.1...0.3.0
0.2.1
What's Changed
- Fix errortext color in settings page by @Acylation in #34
- Support i18n by @Acylation in #36
- Fix drawer to support reactions by @Acylation in #37
Full Changelog: 0.2.0...0.2.1
0.2.0
What's Changed
- Add a plain white theme 'oldschool-dark' by @Acylation in #13
- Clean up
themeObserver
by @Acylation in #15 - Improve observer conditions by @Acylation in #16
- Modify default smiles-drawer options by @Acylation in #22
- Use global drawer by @Acylation in #23
- Spontaneous rerender after settings changed or Obsidian color scheme changed by @Acylation in #24
- Migrate to svg by @Acylation in #26
- Improve width config by @Acylation in #27
- Catch parsing error by @Acylation in #29
Full Changelog: 0.1.2...0.2.0
0.1.2
What's Changed
- Add Chinese Readme by @Acylation in #8
- Update styles.css by @Acylation in #9
- Modify descriptions by @Acylation in #11
Full Changelog: 0.1.1...0.1.2
0.1.1
0.1.0
What's Changed
- Initial submit by @Acylation in #1
Full Changelog: https://github.com/Acylation/obsidian-chem/commits/0.1.0