-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
🐛 BUG: Components with array-like prop fail to render in Markdown #2399
Copy link
Copy link
Closed
Labels
- P4: importantViolate documented behavior or significantly impacts performance (priority)Violate documented behavior or significantly impacts performance (priority)feat: markdownRelated to Markdown (scope)Related to Markdown (scope)
Description
What version of astro are you using?
0.22.11
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
I have a component that takes an array as a prop. I then use this component in a markdown file with setup. When that markdown is rendered, I get something along the lines of <ComponentName propName=[[Object object][Object object]] /> rendered a string. Interestingly, passing empty array to them component seems to work (nothing gets rendered).
I tried to create a Vue component as well and got the same result.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-fdsvay?file=src%2Fpages%2Findex.md
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
- P4: importantViolate documented behavior or significantly impacts performance (priority)Violate documented behavior or significantly impacts performance (priority)feat: markdownRelated to Markdown (scope)Related to Markdown (scope)