Skip to content

Slidev

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:

![scaled image](/image.png){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 {}