🐛 BUG: Alpinejs bind shorthands (ex. :width="<expression>"
) in markdown error dev and build
#3517
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
feat: markdown
Related to Markdown (scope)
What version of
astro
are you using?1.0.0-beta.35
Are you using an SSR adapter? If so, which one?
none
What package manager are you using?
npm, pnpm
What operating system are you using?
Linux
Describe the Bug
(Fork from #3458 )
Having a markdown file with the character
:
be parsed will result in a error in both dev and build.test.md
with<div :width="1+1" />
import {Content} from "./test.md"
<Content />
(may be optional, just having it imported could be enough)Produces an error:
In my site I also got:
Removing the
:
character fixes the error in both cases.Bug got introduced in #3410
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-majhwx?file=src/pages/index.astro
Participation
The text was updated successfully, but these errors were encountered: