diff --git a/nbconvert_html5/templates/semantic-forms/cell.html.j2 b/nbconvert_html5/templates/semantic-forms/cell.html.j2 index 8438842a..ba5d9323 100644 --- a/nbconvert_html5/templates/semantic-forms/cell.html.j2 +++ b/nbconvert_html5/templates/semantic-forms/cell.html.j2 @@ -87,7 +87,7 @@ of the execution count label on different elements with different roles. {%- macro cell_render(cell, nb, parts) -%} {%- set count = nb["cells"].index(cell)-%}{%- set ID = "/cells/" + str(count) -%} {% set CODE = cell.cell_type=="code" %} - + {%- if CODE -%}{{ cell.source | highlight_code(metadata=cell.metadata) }}{% else %}{{markdown(cell.source) | strip_files_prefix}}{%- endif -%} @@ -95,8 +95,7 @@ of the execution count label on different elements with different roles. {%- macro cell_display_priority(cell, ID) -%} {%- for i, output in enumerate(cell.outputs) -%} -{%- block output scoped -%}{%- block output_prompt -%}{%- endblock +{%- block output scoped -%}{%- block output_prompt -%}{%- endblock -%}{{super()}}{%- endblock -%} {%- endfor -%} {%- endmacro -%}