Skip to content

🐛 BUG: Components with array-like prop fail to render in Markdown #2399

@Destiner

Description

@Destiner

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

Metadata

Metadata

Assignees

Labels

- P4: importantViolate documented behavior or significantly impacts performance (priority)feat: markdownRelated to Markdown (scope)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions