Slidev¶
- Website
- GitHub
- Docs
- AUR package "slidev" outdated
- Showcases
- Very active, >30k GH stars, ~250 contributors
- Mermaid support
- Slidev prettier plugin
Install¶
npm¶
Install globally in user homedir:
mkdir ~/.npm/packages
npm config set prefix ~/.npm/packages
npm i -g @slidev/cli@latest @slidev/theme-default@latest
AUR package¶
- Beware: AUR package doesn't contain the default theme, and sildev will want install the default theme in each slides folder again locally. Therefore install both slidev-cli and the default theme globally using npm as shown above !
Usage¶
- Create new presentation following the Syntax guide.
- Edit
slides.md
Then start presentation:
Export PDF¶
npm i -D playwright-chromium
slidev export --format pdf --output semantic-release.pdf semantic-release.md
Themes¶
Addons¶
Images¶
- Comark Syntax
- Beware: Don't use inline markdown-lint ignore lines above the initial from matter
Configure MDC with initial front matter:
Then add a scaled image:
Animations¶
Issues¶
- No images in presenter view
Fix:
image: './img.png'needs to beimage: '/img.png'
Neovim inserts blank lines at beginning and end of frontmatter¶
Solution: