Skip to content
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

PDF Export wrong with clicks enable #2034

Open
CrossR opened this issue Jan 31, 2025 · 0 comments
Open

PDF Export wrong with clicks enable #2034

CrossR opened this issue Jan 31, 2025 · 0 comments

Comments

@CrossR
Copy link

CrossR commented Jan 31, 2025

Describe the bug

All click slides are being included when including clicks and exporting to PDF.
That is, you have a list with <v-clicks> around it, and want to export to PDF.

Instead of getting an empty slide, then a slide with item 1, then item 1 + 2...etc.
You get the full list, then just item 1, then item 1 + 2....
The first slide should be empty, rather than the end of all the clicks.

Image

You can hopefully see that here, where the first visible slide has the full example list.
The second slide, then correctly starts the click-based slides.

(Its a bit annoying to see as for whatever reason, the click toggle isn't showing it has been toggled...but it has been).

Minimal reproduction

Steps to reproduce the behavior:

  1. Copy https://github.com/slidevjs/slidev/blob/main/demo/starter/slides.md locally.
  2. Wrap <v-clicks> + </v-clicks> around the list on slide 3, with appropriate whitespace.
  3. Start the project
  4. Open the export UI, and toggle to enable clicks.
  5. Look at the slides

Interestingly...I just tried this on the web version (sli.dev/new) and it worked fine.
I notice that is using a different version to me though...not sure if this is a regression or I've messed something up.
This is my first time trying out slidev so its possible I've missed something in the config etc, but this was done on a blank, demo file.

Environment

  • Slidev version: v51.1.0 (Seems to work on sli.dev/new with version v0.50.0?)
  • Browser: Chrome 132.0.6834.160
  • OS: MacOS 14.7.3

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).

Repro-d in both global and project-based installs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant