##// END OF EJS Templates
add blank lines in RST to separates blocks....
Matthias Bussonnier -
Show More
@@ -1,80 +1,86 b''
1 1 {%- extends 'display_priority.tpl' -%}
2 2
3 3
4 4 {% block in_prompt %}
5 5 {% endblock in_prompt %}
6 6
7 7 {% block output_prompt %}
8 8 {% endblock output_prompt %}
9 9
10 10 {% block input %}
11 11 {%- if cell.source.strip() -%}
12 12 .. code:: python
13 13
14 14 {{ cell.source | indent}}
15 {%- endif -%}
15 {% endif -%}
16 16 {% endblock input %}
17 17
18 18 {% block error %}
19 19 ::
20 20
21 21 {{ super() }}
22 22 {% endblock error %}
23 23
24 24 {% block traceback_line %}
25 25 {{ line | indent | strip_ansi }}
26 26 {% endblock traceback_line %}
27 27
28 28 {% block execute_result %}
29 29 {% block data_priority scoped %}
30 30 {{ super() }}
31 31 {% endblock %}
32 32 {% endblock execute_result %}
33 33
34 34 {% block stream %}
35 35 .. parsed-literal::
36 36
37 37 {{ output.text | indent }}
38 38 {% endblock stream %}
39 39
40 40 {% block data_svg %}
41 41 .. image:: {{ output.metadata.filenames['image/svg+xml'] | urlencode }}
42 42 {% endblock data_svg %}
43 43
44 44 {% block data_png %}
45 45 .. image:: {{ output.metadata.filenames['image/png'] | urlencode }}
46 46 {% endblock data_png %}
47 47
48 48 {% block data_jpg %}
49 49 .. image:: {{ output.metadata.filenames['image/jpeg'] | urlencode }}
50 50 {% endblock data_jpg %}
51 51
52 52 {% block data_latex %}
53 53 .. math::
54 54
55 55 {{ output.data['text/latex'] | strip_dollars | indent }}
56 56 {% endblock data_latex %}
57 57
58 58 {% block data_text scoped %}
59 59 .. parsed-literal::
60 60
61 61 {{ output.data['text/plain'] | indent }}
62 62 {% endblock data_text %}
63 63
64 64 {% block data_html scoped %}
65 65 .. raw:: html
66 66
67 67 {{ output.data['text/html'] | indent }}
68 68 {% endblock data_html %}
69 69
70 70 {% block markdowncell scoped %}
71 71 {{ cell.source | markdown2rst }}
72 72 {% endblock markdowncell %}
73 73
74 {%- block rawcell scoped -%}
75 {%- if cell.metadata.get('raw_mimetype', '').lower() in resources.get('raw_mimetypes', ['']) %}
76 {{cell.source}}
77 {% endif -%}
78 {%- endblock rawcell -%}
79
74 80 {% block headingcell scoped %}
75 81 {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2rst }}
76 82 {% endblock headingcell %}
77 83
78 84 {% block unknowncell scoped %}
79 85 unknown type {{cell.type}}
80 86 {% endblock unknowncell %}
General Comments 0
You need to be logged in to leave comments. Login now