Show More
@@ -53,24 +53,40 b' In [{{ cell.prompt_number }}]:' | |||
|
53 | 53 | </div> |
|
54 | 54 | {% endblock output %} |
|
55 | 55 | |
|
56 | {% block markdowncell scoped %} | |
|
57 | <div class="text_cell_render border-box-sizing rendered_html"> | |
|
58 | <div class="prompt input_prompt"></div> | |
|
56 | {% block e_in_prompt -%} | |
|
57 | <div class="prompt input_prompt"> | |
|
58 | </div> | |
|
59 | {%- endblock e_in_prompt %} | |
|
60 | ||
|
61 | {% block m_input %} | |
|
59 | 62 | <div class="inner_cell"> |
|
63 | <div class="text_cell_render border-box-sizing rendered_html"> | |
|
60 | 64 | {{ cell.source | markdown2html | strip_files_prefix }} |
|
61 | 65 | </div> |
|
62 | 66 | </div> |
|
63 |
{%- endblock m |
|
|
67 | {%- endblock m_input %} | |
|
64 | 68 | |
|
65 |
{% block h |
|
|
69 | {% block h_input %} | |
|
70 | <div class="inner_cell"> | |
|
66 | 71 | <div class="text_cell_render border-box-sizing rendered_html"> |
|
67 | 72 | {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2html | strip_files_prefix | add_anchor }} |
|
68 | 73 | </div> |
|
69 | {% endblock headingcell %} | |
|
74 | </div> | |
|
75 | {% endblock h_input %} | |
|
76 | ||
|
77 | {% block r_input %} | |
|
78 | <div class="inner_cell"> | |
|
79 | {% if cell.metadata.get('raw_mimetype', resources.get('raw_mimetype', '')).lower() in resources.get('raw_mimetypes', ['']) %} | |
|
80 | {{ cell.source }} | |
|
81 | {% endif %} | |
|
82 | </div> | |
|
83 | {% endblock r_input %} | |
|
70 | 84 | |
|
71 |
{% block u |
|
|
85 | {% block u_input %} | |
|
86 | <div class="inner_cell"> | |
|
72 | 87 | unknown type {{ cell.type }} |
|
73 | {% endblock unknowncell %} | |
|
88 | </div> | |
|
89 | {% endblock u_input %} | |
|
74 | 90 | |
|
75 | 91 | {% block pyout -%} |
|
76 | 92 | <div class="box-flex1 output_subarea output_pyout"> |
@@ -71,9 +71,17 b' consider calling super even if it is a leave block, we might insert more blocks ' | |||
|
71 | 71 | {%- endblock codecell -%} |
|
72 | 72 | {%- elif cell.cell_type in ['markdown'] -%} |
|
73 | 73 | {%- block markdowncell scoped-%} |
|
74 | {%- block input_group -%} | |
|
75 | {%- block e_in_prompt -%}{%- endblock e_in_prompt -%} | |
|
76 | {%- block m_input -%}{%- endblock m_input -%} | |
|
77 | {%- endblock input_group -%} | |
|
74 | 78 | {%- endblock markdowncell -%} |
|
75 | 79 | {%- elif cell.cell_type in ['heading'] -%} |
|
76 | 80 | {%- block headingcell scoped-%} |
|
81 | {%- block input_group -%} | |
|
82 | {%- block e_in_prompt -%}{%- endblock e_in_prompt -%} | |
|
83 | {%- block h_input -%}{%- endblock h_input -%} | |
|
84 | {%- endblock input_group -%} | |
|
77 | 85 | {%- endblock headingcell -%} |
|
78 | 86 | {%- elif cell.cell_type in ['raw'] -%} |
|
79 | 87 | {%- block rawcell scoped -%} |
@@ -83,6 +91,10 b' consider calling super even if it is a leave block, we might insert more blocks ' | |||
|
83 | 91 | {%- endblock rawcell -%} |
|
84 | 92 | {%- else -%} |
|
85 | 93 | {%- block unknowncell scoped-%} |
|
94 | {%- block input_group -%} | |
|
95 | {%- block e_in_prompt -%}{%- endblock e_in_prompt -%} | |
|
96 | {%- block u_input -%}{%- endblock u_input -%} | |
|
97 | {%- endblock input_group -%} | |
|
86 | 98 | {%- endblock unknowncell -%} |
|
87 | 99 | {%- endif -%} |
|
88 | 100 | {%- endblock any_cell -%} |
General Comments 0
You need to be logged in to leave comments.
Login now