remark icon indicating copy to clipboard operation
remark copied to clipboard

Add special class to slide "fragments" (-- slides)

Open sinedied opened this issue 9 years ago • 5 comments

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?

sinedied avatar Nov 09 '16 13:11 sinedied

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)?

wookayin avatar Dec 21 '16 16:12 wookayin

Somehow related to #294 and #297.

szpak avatar Dec 21 '16 22:12 szpak

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.

bnicenboim avatar Dec 29 '16 13:12 bnicenboim

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.

klonos avatar Dec 29 '16 13:12 klonos

@bnicenboim @klonos It turns out that there is an option countIncrementalSlides that can be set to false: https://github.com/gnab/remark/wiki/Configuration

yihui avatar Jan 23 '17 19:01 yihui