-
I'm in the process of converting my blog to Nuxt V3 and Content V2. My articles use components in markdown like this:
V2 complains about the images prop:
For V1, a similar error happens when you omit the colon before 'images'. Am I missing something, or do I have to change all my articles to the new content component format? |
Beta Was this translation helpful? Give feedback.
Answered by
farnabaz
Jul 20, 2022
Replies: 1 comment 1 reply
-
Sadly this is not possible in V2. Content V1 used However, there are alternative ways to pass props to components, With frontmatter
With MDC syntax and scoped variable
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
teegee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sadly this is not possible in V2. Content V1 used
eval
andnew Function
to evaluate these syntaxes, but due to security reasons, Content V2 does not use them.However, there are alternative ways to pass props to components,
With frontmatter
With MDC syntax and scoped variable