Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 4 column 34
---
marp: true
theme: default
paginate: true
style: section::after { font-size: xx-large; }
---
git clone https://gist.github.com/13a9f52c96821ae34c3de5f732f305df.git marp-hide-slides
cd ./marp-hide-slides
npm i
npx marp -c ./marp.config.js ./hide-slides.md -p
This page has been marked as hidden
<!-- _hide: true -->
This plugin will strip slide tokens from rendered result if detected a definition of hide
custom local directive in the slide.
By using hide
directive without underscore prefix for scoping, you can hide multiple pages at once.
hide
custom local directive is also following a general rule of Marpit local directive.
Marpit's pagination provided by paginate
directive is keeping an original page number even if the slide page was hidden.
- Marpit API: https://marpit-api.marp.app/
- markdown-it API: https://markdown-it.github.io/markdown-it/
- The most interfaces of Marpit plugin is compatible with markdown-it plugin.