Chiyu Liang

Results 141 comments of Chiyu Liang

I did try combining React with my project, https://github.com/Acylation/obsidian-chem-indev, in which it successfully identify the package while no actual rendering example had I implemented. Maybe you can try this https://github.com/reymond-group/smilesDrawer/issues/157#issuecomment-1484825796...

I came across the same problem and would suggest another change here. `export const AppContext = React.createContext(undefined);` also works, please take it into consideration.

Seems like only when all carbons in the ring in lower case will the ring be aromatized. ![image](https://github.com/reymond-group/smilesDrawer/assets/73122375/3a45749f-711c-4783-b90b-561e7d23df98)

```typescript const source = 'CC(=O)Nc1ccccc1C(=O)O' const targetImg = container.createEl('img') as HTMLImageElement // container is a HTMLDivElement, decleared previously const theme = 'dark' let drawer = new SmilesDrawer.SmiDrawer(); drawer.draw(source, targetImg, theme)...

Here's a React example that yields png ```tsx const imgRef = useRef(null); const drawer = new SmilesDrawer.SmiDrawer(options); // options is a param useEffect(() => { drawer.draw(smilesStr, imgRef.current, 'light'); }); return...

I'd like to help with the Obsidian API. `*.mw` files can be regocnized if the plugin registers the extension. And all we need to do are - Build a cutom...

Thanks for the suggestion @MSBack ! I will check them out. @quinn-p-mchugh Thanks for the info, I will go through the comments carefully. I checked your prototype and decided to...

@crimson-med you may check out my repo here. https://github.com/Acylation/obsidian-markwhen I’m iterating through multiple projects and this is postponed for a while. Unlike the VSCode plugin that provides a webview, Obsidian...

This is how it look like when using the Atom theme

While this is how it look like under the defaut theme