-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Description
Describe the bug
Built-in components and animation in code blocks do not work in version 51.0.0
and above.
I tested the same slide.md
with version 0.50.0
, 0.51.0-beta.1
, and 0.51.0-beta.4
and all the functionality mentioned seems to work fine.
Minimal reproduction
Steps to reproduce the behavior:
- Start slidev sli.dev/new.
- Replace
slides.md
with
Current slide number: <SlideCurrentNo />.
```{all|1|2|2-3|all}
line 1
line 2
line 3
```
- Run
pnpm install && npm run dev
. - Try interact with the slide. This stepping through slide should highlight all lines, line 1, line 2, then line 2+3, then back to all lines.
- Try changing slidev's version in
package.json
to"51.0.0"
, and repeat the step 3 and 4 again. The slide number will not show up and steping through the slide will not change any thing in the code block.
Environment
-
Slidev version:
51.0.0
(with bug),0.50.0
,0.51.0-beta.1
, and0.51.0-beta.4
(without bug) -
Browser: Brave
-
OS: macos, stackblitz.
-
If you are using Slidev globally (i.e.
npx slidev
ornpm i -g slidev
), please try to reproduce the issue in a local project (i.e.npm create slidev@latest
).