Show More
@@ -65,10 +65,6 b' In [{{ cell.prompt_number }}]:' | |||||
65 | </div> |
|
65 | </div> | |
66 | {% endblock headingcell %} |
|
66 | {% endblock headingcell %} | |
67 |
|
67 | |||
68 | {% block rawcell scoped %} |
|
|||
69 | {{ cell.source }} |
|
|||
70 | {% endblock rawcell %} |
|
|||
71 |
|
||||
72 | {% block unknowncell scoped %} |
|
68 | {% block unknowncell scoped %} | |
73 | unknown type {{ cell.type }} |
|
69 | unknown type {{ cell.type }} | |
74 | {% endblock unknowncell %} |
|
70 | {% endblock unknowncell %} |
@@ -218,11 +218,6 b' This template does not define a docclass, the inheriting class must define this.' | |||||
218 | ((( cell.source | citation2latex | markdown2latex ))) |
|
218 | ((( cell.source | citation2latex | markdown2latex ))) | |
219 | ((* endblock markdowncell *)) |
|
219 | ((* endblock markdowncell *)) | |
220 |
|
220 | |||
221 | % Spit out the contents of raw cells unmodified |
|
|||
222 | ((* block rawcell scoped *)) |
|
|||
223 | ((( cell.source ))) |
|
|||
224 | ((* endblock rawcell *)) |
|
|||
225 |
|
||||
226 | % Don't display unknown types |
|
221 | % Don't display unknown types | |
227 | ((* block unknowncell scoped *)) |
|
222 | ((* block unknowncell scoped *)) | |
228 | ((* endblock unknowncell *)) |
|
223 | ((* endblock unknowncell *)) |
@@ -80,7 +80,10 b' consider calling super even if it is a leave block, we might insert more blocks ' | |||||
80 | ((*- block headingcell scoped-*)) |
|
80 | ((*- block headingcell scoped-*)) | |
81 | ((*- endblock headingcell -*)) |
|
81 | ((*- endblock headingcell -*)) | |
82 | ((*- elif cell.cell_type in ['raw'] -*)) |
|
82 | ((*- elif cell.cell_type in ['raw'] -*)) | |
83 | ((*- block rawcell scoped-*)) |
|
83 | ((*- block rawcell scoped -*)) | |
|
84 | ((* if cell.metadata.get('raw_format', resources.get('raw_format')) == resources.get('raw_format') *)) | |||
|
85 | ((( cell.source ))) | |||
|
86 | ((* endif *)) | |||
84 | ((*- endblock rawcell -*)) |
|
87 | ((*- endblock rawcell -*)) | |
85 | ((*- else -*)) |
|
88 | ((*- else -*)) | |
86 | ((*- block unknowncell scoped-*)) |
|
89 | ((*- block unknowncell scoped-*)) |
@@ -63,10 +63,6 b'' | |||||
63 | {{ '#' * cell.level }} {{ cell.source | replace('\n', ' ') }} |
|
63 | {{ '#' * cell.level }} {{ cell.source | replace('\n', ' ') }} | |
64 | {% endblock headingcell %} |
|
64 | {% endblock headingcell %} | |
65 |
|
65 | |||
66 | {% block rawcell scoped %} |
|
|||
67 | {{ cell.source }} |
|
|||
68 | {% endblock rawcell %} |
|
|||
69 |
|
||||
70 | {% block unknowncell scoped %} |
|
66 | {% block unknowncell scoped %} | |
71 | unknown type {{ cell.type }} |
|
67 | unknown type {{ cell.type }} | |
72 | {% endblock unknowncell %} No newline at end of file |
|
68 | {% endblock unknowncell %} |
@@ -46,10 +46,6 b' it introduces a new line' | |||||
46 | {{ '#' * cell.level }}{{ cell.source | replace('\n', ' ') | comment_lines }} |
|
46 | {{ '#' * cell.level }}{{ cell.source | replace('\n', ' ') | comment_lines }} | |
47 | {% endblock headingcell %} |
|
47 | {% endblock headingcell %} | |
48 |
|
48 | |||
49 | {% block rawcell scoped %} |
|
|||
50 | {{ cell.source | comment_lines }} |
|
|||
51 | {% endblock rawcell %} |
|
|||
52 |
|
||||
53 | {% block unknowncell scoped %} |
|
49 | {% block unknowncell scoped %} | |
54 | unknown type {{ cell.type }} |
|
50 | unknown type {{ cell.type }} | |
55 | {% endblock unknowncell %} No newline at end of file |
|
51 | {% endblock unknowncell %} |
@@ -75,10 +75,6 b'' | |||||
75 | {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2rst }} |
|
75 | {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2rst }} | |
76 | {% endblock headingcell %} |
|
76 | {% endblock headingcell %} | |
77 |
|
77 | |||
78 | {% block rawcell scoped %} |
|
|||
79 | {{ cell.source }} |
|
|||
80 | {% endblock rawcell %} |
|
|||
81 |
|
||||
82 | {% block unknowncell scoped %} |
|
78 | {% block unknowncell scoped %} | |
83 | unknown type {{cell.type}} |
|
79 | unknown type {{cell.type}} | |
84 | {% endblock unknowncell %} |
|
80 | {% endblock unknowncell %} |
@@ -76,7 +76,10 b' consider calling super even if it is a leave block, we might insert more blocks ' | |||||
76 | {%- block headingcell scoped-%} |
|
76 | {%- block headingcell scoped-%} | |
77 | {%- endblock headingcell -%} |
|
77 | {%- endblock headingcell -%} | |
78 | {%- elif cell.cell_type in ['raw'] -%} |
|
78 | {%- elif cell.cell_type in ['raw'] -%} | |
79 | {%- block rawcell scoped-%} |
|
79 | {%- block rawcell scoped -%} | |
|
80 | {% if cell.metadata.get('raw_format', resources.get('raw_format', '')).lower() in resources.get('raw_formats', ['']) %} | |||
|
81 | {{ cell.source }} | |||
|
82 | {% endif %} | |||
80 | {%- endblock rawcell -%} |
|
83 | {%- endblock rawcell -%} | |
81 | {%- else -%} |
|
84 | {%- else -%} | |
82 | {%- block unknowncell scoped-%} |
|
85 | {%- block unknowncell scoped-%} |
General Comments 0
You need to be logged in to leave comments.
Login now