diff --git a/IPython/nbconvert/preprocessors/revealhelp.py b/IPython/nbconvert/preprocessors/revealhelp.py index fb39ed0..9678e54 100755 --- a/IPython/nbconvert/preprocessors/revealhelp.py +++ b/IPython/nbconvert/preprocessors/revealhelp.py @@ -55,7 +55,14 @@ class RevealHelpPreprocessor(Preprocessor): worksheet.cells[index - 1].metadata.slide_helper = 'slide_end' if cell.metadata.slide_type in ['subslide']: worksheet.cells[index - 1].metadata.slide_helper = 'subslide_end' - + if cell.metadata.slide_type in ['fragment']: + try: + i = 1 + while 1: + worksheet.cells[index + i].metadata.frag_helper = 'fragment_end' + i += 1 + except IndexError as e: + pass #Last cell doesn't have a next one if not isinstance(resources['reveal'], dict): resources['reveal'] = {} diff --git a/IPython/nbconvert/templates/html/slides_reveal.tpl b/IPython/nbconvert/templates/html/slides_reveal.tpl index f27fc76..2cb112c 100644 --- a/IPython/nbconvert/templates/html/slides_reveal.tpl +++ b/IPython/nbconvert/templates/html/slides_reveal.tpl @@ -10,7 +10,13 @@
{{ super() }} {%- elif cell.metadata.slide_type in ['-'] -%} - {{ super() }} + {%- if cell.metadata.frag_helper in ['fragment_end'] -%} +
+ {{ super() }} +
+ {%- else -%} + {{ super() }} + {%- endif -%} {%- elif cell.metadata.slide_type in ['skip'] -%}
{{ super() }}