slidevjs / slidev

Presentation Slides for Developers
https://sli.dev
MIT License
33.49k stars 1.37k forks source link

Build not working as intended (download set to true) #341

Closed bram-pkg closed 3 years ago

bram-pkg commented 3 years ago

Describe the bug When building my slides with download set to true, the dist/slidev-export.pdf contains pages that only represent the first slide.

When running npm run export, the generated PDF is correct.

I have attached two PDF's that serve as an example of the behaviour.

To Reproduce Steps to reproduce the behavior:

  1. Make 'slides.md' with at least 2 slides
  2. Enable downloads using download: true in the YAML front matter
  3. Run npm run build
  4. Open dist/slidev-export.pdf
  5. All pages of the PDF represent the first slides.md slide

This is especially weird because npm run export works correctly.

Desktop (please complete the following information):

Example of npm run export slides-export.pdf

Example of npm run build with download: true slidev-exported.pdf

bram-pkg commented 3 years ago

I have updated to 0.23 and this still does not work as intended.

Screenshot 2021-09-15 at 09 37 06
bram-pkg commented 3 years ago
Screenshot 2021-09-15 at 09 37 53

While this is the output of npm run export