HugoGranstrom / nimiSlides

A Reveal.js theme for nimib for making slideshow presentations in Nim
https://hugogranstrom.com/nimiSlides
MIT License
80 stars 6 forks source link

Fix dracula + Use sets for `animateCode` #32

Closed HugoGranstrom closed 1 year ago

HugoGranstrom commented 1 year ago

Fixes #30 by adding a piece of CSS to fix the styling. Fixes #31 by rewriting animateCode to use sets as the base type. This means that we only need one template instead of 2 as before. This is nice because we can now mix sets and ranges like this: {1, 3..5} (highlight line 1, 3, 4, 5 at the same time). And as you can see, now we can highlight lines that aren't next to each other easily (It was possible before, but required using seqs which wasn't ergonomic).