Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sinedied opened this issue Nov 9, 2016 · 5 comments
Open

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

sinedied opened this issue Nov 9, 2016 · 5 comments

Comments

@sinedied
Copy link
Contributor

sinedied commented Nov 9, 2016

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?

@wookayin
Copy link

wookayin commented Dec 21, 2016

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

@szpak
Copy link

szpak commented Dec 21, 2016

Somehow related to #294 and #297.

@bnicenboim
Copy link

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.

@klonos
Copy link

klonos commented Dec 29, 2016

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.

@yihui
Copy link

yihui commented Jan 23, 2017

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

@peterj peterj removed the 0.15.0 label Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants