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 @slidev/theme-default
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 !
pamac install slidev-cli
Usage
- Create new presentation following the Syntax guide.
- Edit
slides.md
Then start presentation:
slidev
Themes
Images
- MDC Syntax
- Beware: Don't use inline markdown-lint ignore lines above the initial from matter
Configure MDC with initial front matter:
---
mdc: true
---
Then add a scaled image:
{width=50px lazy}
Issues
Neovim inserts blank lines at beginning and end of frontmatter
Solution:
$ cat .lazy.lua
# https://kezhenxu94.me/blog/lazyvim-project-specific-settings
vim.b.autoformat = false
return {}