Open Vawlpe opened 1 year ago
Thanks for your design and input! This will surely be an effective way to styling a single block, especially scaling and some drawing options.
There are several questions
json
syntax commonly used in other code-block related plugins? (i.e. admonition, abcjs)The size control of the structures is going to be imporved (#14), since we gonna set all structures sharing the same length of bonds, the final picture size will depend on the molecule. In the case of multi-line block, I would like to wrap the sturctures in a table
to make it neat. If we want to apply inline settings, some small changes are needed to adapt to this.
I'm refactoring the project using React, and the files are changed a lot. I'll try to integrate your code to new ones, to provide block-specified configuring ability. After adaptation and neccessary documentation, we will introduce the ability to the plugin. Thanks again!
Hi, thanks for reviewing this PR!
Is the json
syntax commonly used in other code-block plugin
options
param is just a JS Object, which can easily be derived from
a json
string w/ JSON.parse(...)
optName:: optValue
lines, without all the extra quotes and commas and the
!{...}!
"wrapper", i just didn't want to think about actually parsing the
options from the text for this initial implementation, so the use of json
was a DX decision instead of a UX one in this case lolEase of cfg input? Autocomplete / UI?
!
, and made the
code expect to find JSON between 2 of that symbol, i think it would be nice
to have a WYSIWYG-like UI to customize these settings and auto-generate the
JSON for whatever changes you made in the UI.Plugin specific text in notes = bad, cleaner option?
Any update on this @Acylation? I think this would be a nice feature to have
Hi @crepppy thanks for the follow-up! I'm figuring out how to store block-specific configs and expose UI without messing notes up, perhaps using an editor extension, requiring much more coding work. I'd like to postpone this to December because I will be busy these months with PhD application.
However, if you don't mind adding extra info in your smiles block, I could create a branch for this PR, and release a preview version where you can utilize this feature. Please let me know if this would work for you, it will come out at early Oct if you need this.
Yes I know the code isn't clean and there's probably bugs, but I'll PR this anyway if anyone's willing to take a look :p