Open nulltier opened 4 years ago
@anzome hey!
First of all – I'm not an author nor an expert and I have no opinion about your proposal as I don't know your requirements. I stumbled upon this issue while searching for something else.
Have you heard about MDX? Might solve your needs and it's already semi-standardized
Instead of %AVATAR{src: "/avatar.png", width: 100, height: 100}
you would write
<Avatar src="…" width=100 height=100 />
@Strajk I have some special needs too.
I created the gatsby-source-google-docs plugin for multiple reasons but the main ones are:
It would be awesome if I could find a way to have similar MDX
functionalities, writing my content in Google Docs and find a way to declare some real React Components between two paragraphs
@cedricdelpoux sounds nice, I would like that too, but I don't think that's possible with any tools nowadays – maybe give a try to https://github.com/xyc/vscode-mdx-preview
Hi, Angelo
Do you have any strong opinion regarding the boundaries of the functionality the plugin? I see the possibility to add a feature for which I see no ready implementation. With some examples I'll try to explain the idea. Please, let me know you find it compatible with your vision then I'll prepare a PR.
So. What if your plugin will support the placeholders with the parameters?
i. Configuration
ii. Markdown
iii. Output
I have several alternative versions of a syntax with different pros and cons. There will be a time to discuss them later.
Let me know what you think.