From 8023322262e15ee433e3b71ed59e3d12e64fc19a 2014-02-23 22:14:39 From: Aron Ahmadia Date: 2014-02-23 22:14:39 Subject: [PATCH] Wrap nbconvert Markdown/Heading cells in live divs Addresses https://github.com/ipython/ipython/issues/5206 This partially mimics the live IPython notebook layout, but is not a complete solution. --- diff --git a/IPython/nbconvert/templates/html/basic.tpl b/IPython/nbconvert/templates/html/basic.tpl index 9b8b76f..d1947db 100644 --- a/IPython/nbconvert/templates/html/basic.tpl +++ b/IPython/nbconvert/templates/html/basic.tpl @@ -59,6 +59,7 @@ In [{{ cell.prompt_number }}]: {% endblock output %} {% block markdowncell scoped %} +
{{ self.empty_in_prompt() }}
@@ -67,9 +68,11 @@ In [{{ cell.prompt_number }}]:
+ {%- endblock markdowncell %} {% block headingcell scoped %} +
{{ self.empty_in_prompt() }}
@@ -78,6 +81,7 @@ In [{{ cell.prompt_number }}]:
+ {% endblock headingcell %} {% block unknowncell scoped %}