##// END OF EJS Templates
Added support for markdown in heading cells when they are nbconverted.
damianavila -
Show More
@@ -62,7 +62,7 b' Out[{{cell.prompt_number}}]:'
62 <h{{cell.level}}>
62 <h{{cell.level}}>
63 {% set source = cell.source | replace(' ','_') %}
63 {% set source = cell.source | replace(' ','_') %}
64 <a class="heading-anchor" id="{{source}}" href="#{{source}}">
64 <a class="heading-anchor" id="{{source}}" href="#{{source}}">
65 {{cell.source}}
65 {{cell.source | markdown| rm_fake}}
66 </a>
66 </a>
67 </h{{cell.level}}>
67 </h{{cell.level}}>
68 </div>
68 </div>
@@ -61,7 +61,7 b' $$'
61
61
62 {% block headingcell scoped %}
62 {% block headingcell scoped %}
63
63
64 {{ '#' * cell.level }} {{ cell.source}}
64 {{ '#' * cell.level }} {{ cell.source | wrap(80)}}
65
65
66 {% endblock headingcell %}
66 {% endblock headingcell %}
67
67
@@ -64,7 +64,7 b' Out[{{cell.prompt_number}}]:{% endif %}{% endblock output_prompt %}'
64
64
65 {% block headingcell scoped %}
65 {% block headingcell scoped %}
66 {%- set len = cell.source|length -%}
66 {%- set len = cell.source|length -%}
67 {{ cell.source}}
67 {{ cell.source | markdown2rst}}
68 {% if cell.level == 1 %}
68 {% if cell.level == 1 %}
69 {{- '=' * len }}
69 {{- '=' * len }}
70 {%- elif cell.level == 2 %}
70 {%- elif cell.level == 2 %}
General Comments 0
You need to be logged in to leave comments. Login now