Skip to content

[Bug] Built-in components and animation in code blocks do not work at since version 51.x.x #2066

@chanwutk

Description

@chanwutk

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:

  1. Start slidev sli.dev/new.
  2. Replace slides.md with
Current slide number: <SlideCurrentNo />.

```{all|1|2|2-3|all}
line 1
line 2
line 3
```
  1. Run pnpm install && npm run dev.
  2. 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.
  3. 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, and 0.51.0-beta.4 (without bug)

  • Browser: Brave

  • OS: macos, stackblitz.

  • If you are using Slidev globally (i.e. npx slidev or npm i -g slidev), please try to reproduce the issue in a local project (i.e. npm create slidev@latest).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions