remark
remark copied to clipboard
Add special class to slide "fragments" (-- slides)
It would be nice if slide fragments (slides starting with -- instead of ---) could be specifically identified, for example with a remark-fragment class and not just be regular slides, for multiple reasons:
- specific fragment animation vs whole slide transition
- pdf print exclusion of the whole fragments except the last one
I took a quick peek at the come, but at the moment it seems there is no way to simply distinguish full slides vs fragments, or maybe I missed something?
Nice feature. Another suggestion: how about introducing a way to determine the fragment index (e.g. 1st or 2nd fragment out of total N fragments), by adding some classes (or an internal javascript API would be good as well)?
Somehow related to #294 and #297.
I guess that if this is going to be added, it'll be nice that slide number won't increase when the next fragment appears.
it'll be nice that slide number won't increase when the next fragment appears.
Yeah, I was looking for a way to achieve that too.
@bnicenboim @klonos It turns out that there is an option countIncrementalSlides that can be set to false: https://github.com/gnab/remark/wiki/Configuration