-
-
Notifications
You must be signed in to change notification settings - Fork 624
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
Nested attributes are ignored #1452
Comments
The issue is only for images inside Nested attributes work properly for other elements. For example, this [[Hooray]{.text-red-100}]{.bg-pink-50} gives this correct ast (as per https://content.nuxtjs.org/playground) {
"type": "element",
"tag": "p",
"props": {},
"children": [
{
"type": "element",
"tag": "span",
"props": {
"class": "bg-pink-50"
},
"children": [
{
"type": "element",
"tag": "span",
"props": {
"class": "text-red-100"
},
"children": [
{
"type": "text",
"value": "Hooray"
}
]
}
]
}
]
}, Even this ![Nuxt](https://nuxtjs.org/design-kit/colored-logo.svg){.abc} gives proper ast {
"type": "element",
"tag": "p",
"props": {},
"children": [
{
"type": "element",
"tag": "img",
"props": {
"alt": "Nuxt",
"src": "https://nuxtjs.org/design-kit/colored-logo.svg",
"class": "abc"
},
"children": []
}
]
}, But this, i.e., image in [![Nuxt](https://nuxtjs.org/design-kit/colored-logo.svg){.nest}](https:test) gives this wrong ast (Note: no class seen) {
"type": "element",
"tag": "p",
"props": {},
"children": [
{
"type": "element",
"tag": "a",
"props": {
"href": "https:test",
"rel": [
"nofollow"
]
},
"children": [
{
"type": "element",
"tag": "img",
"props": {
"alt": "Nuxt",
"src": "https://nuxtjs.org/design-kit/colored-logo.svg"
},
"children": []
}
]
}
]
}, |
51 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Linux
v16.16.0
3.0.0-rc.8
[email protected]
vite
alias
,nitro
,ssr
,meta
,css
,modules
,watch
,runtimeConfig
,serverHandlers
,storybook
,vite
@nuxtjs/[email protected]
,@pinia/[email protected]
,./modules/storybook
,./modules/graphql
,[email protected]
,@nuxt/[email protected]
-
Reproduction
https://stackblitz.com/edit/github-fxpgdf?file=content/index.md
Describe the bug
Given the following markdown content
in the rendered html, the first image the class
h-6
is present, in the second not.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: