-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Props in shortcode are passed as an Array instead of Object #209
Comments
Hi, thanks for this. So I can try and recreate, can you let me know your output of |
Sure, here's the output
I also tried it running wsl2 on Windows and had the same issue.
|
Turns out this was a legacy issue with the forked https://github.com/elderjs/shortcodes. I've updated it to always return an object. It is part of the latest release of Elder.js. |
When trying to create a shortcode for our site I noticed an issue with the props argument received in the shortcode run function.
I cloned and ran the Elderjs template project to make sure our configuration was not causing the issue.
Steps to reproduce
getting-started.md
and add thebox
shortcode that is shown in the documentation page.Expected output of props in the shortcode function
{ type: "gray" }
Actual
[ type: 'gray' ]
The text was updated successfully, but these errors were encountered: