##// END OF EJS Templates
minor adjustments to markdown / rst templates...
MinRK -
Show More
@@ -2,19 +2,13 b''
2 2
3 3
4 4 {% block in_prompt %}
5 In[{{ cell.prompt_number if cell.prompt_number else ' ' }}]:
6 5 {% endblock in_prompt %}
7 6
8 7 {% block output_prompt %}
9 {% if cell.haspyout %}
10 Out[{{ cell.prompt_number }}]:
11 {%- endif %}
12 8 {%- endblock output_prompt %}
13 9
14 10 {% block input %}
15 ```
16 {{ cell.input }}
17 ```
11 {{ cell.input | indent(4)}}
18 12 {% endblock input %}
19 13
20 14 {% block pyerr %}
@@ -26,6 +20,7 b' Out[{{ cell.prompt_number }}]:'
26 20 {% endblock traceback_line %}
27 21
28 22 {% block pyout %}
23
29 24 {% block data_priority scoped %}
30 25 {{ super() }}
31 26 {% endblock %}
@@ -48,11 +43,13 b' Out[{{ cell.prompt_number }}]:'
48 43 {% endblock data_jpg %}
49 44
50 45 {% block data_latex %}
51 $$
52 46 {{ output.latex }}
53 $$
54 47 {% endblock data_latex %}
55 48
49 {% block data_html scoped %}
50 {{ output.html }}
51 {% endblock data_html %}
52
56 53 {% block data_text scoped %}
57 54 {{ output.text | indent }}
58 55 {% endblock data_text %}
@@ -61,6 +58,7 b' $$'
61 58 {{ cell.source | wrap_text(80) }}
62 59 {% endblock markdowncell %}
63 60
61
64 62 {% block headingcell scoped %}
65 63 {{ '#' * cell.level }} {{ cell.source | replace('\n', ' ') }}
66 64 {% endblock headingcell %}
@@ -2,25 +2,22 b''
2 2
3 3
4 4 {% block in_prompt %}
5
6 In[{{ cell.prompt_number if cell.prompt_number else ' ' }}]:
7
8 .. code:: python
9
10 5 {% endblock in_prompt %}
11 6
12 7 {% block output_prompt %}
13 {% if cell.haspyout -%}
14 Out[{{ cell.prompt_number }}]:
15 {% endif %}
16 8 {% endblock output_prompt %}
17 9
18 10 {% block input %}
11 {%- if not cell.input.isspace() -%}
12 .. code:: python
13
19 14 {{ cell.input | indent}}
15 {%- endif -%}
20 16 {% endblock input %}
21 17
22 18 {% block pyerr %}
23 19 ::
20
24 21 {{ super() }}
25 22 {% endblock pyerr %}
26 23
@@ -49,19 +46,27 b" In[{{ cell.prompt_number if cell.prompt_number else ' ' }}]:"
49 46 {% endblock data_png %}
50 47
51 48 {% block data_jpg %}
52 ..jpg image:: {{ output.jpg_filename }}
49 .. image:: {{ output.jpeg_filename }}
53 50 {% endblock data_jpg %}
54 51
55 52 {% block data_latex %}
56 53 .. math::
57 {{ output.latex | indent }}
54
55 {{ output.latex | strip_dollars | indent }}
58 56 {% endblock data_latex %}
59 57
60 58 {% block data_text scoped %}
61 59 .. parsed-literal::
60
62 61 {{ output.text | indent }}
63 62 {% endblock data_text %}
64 63
64 {% block data_html scoped %}
65 .. raw:: html
66
67 {{ output.html | indent }}
68 {% endblock data_html %}
69
65 70 {% block markdowncell scoped %}
66 71 {{ cell.source | markdown2rst }}
67 72 {% endblock markdowncell %}
General Comments 0
You need to be logged in to leave comments. Login now