The way I transform text to slides is with quarto support for reveal.js
This does everything you need and means you can keep it plain text and code in a qmd file.
The way I transform text to slides is with quarto support for reveal.js
This does everything you need and means you can keep it plain text and code in a qmd file.