Show More
@@ -119,11 +119,25 b' unknown type {{ cell.type }}' | |||||
119 | {%- endblock data_html %} |
|
119 | {%- endblock data_html %} | |
120 |
|
120 | |||
121 | {% block data_png %} |
|
121 | {% block data_png %} | |
122 |
<img src="data:image/png;base64,{{ output.png }}" |
|
122 | <img src="data:image/png;base64,{{ output.png }}" | |
|
123 | {%- if 'width' in output.metadata.get('png', {}) %} | |||
|
124 | width={{output.metadata['png']['width']}} | |||
|
125 | {%- endif %} | |||
|
126 | {%- if 'height' in output.metadata.get('png', {}) %} | |||
|
127 | height={{output.metadata['png']['height']}} | |||
|
128 | {%- endif %} | |||
|
129 | > | |||
123 | {%- endblock data_png %} |
|
130 | {%- endblock data_png %} | |
124 |
|
131 | |||
125 | {% block data_jpg %} |
|
132 | {% block data_jpg %} | |
126 |
<img src="data:image/jpeg;base64,{{ output.jpeg }}" |
|
133 | <img src="data:image/jpeg;base64,{{ output.jpeg }}" | |
|
134 | {%- if 'width' in output.metadata.get('jpeg', {}) %} | |||
|
135 | width={{output.metadata['jpeg']['width']}} | |||
|
136 | {%- endif %} | |||
|
137 | {%- if 'height' in output.metadata.get('jpeg', {}) %} | |||
|
138 | height={{output.metadata['jpeg']['height']}} | |||
|
139 | {%- endif %} | |||
|
140 | > | |||
127 | {%- endblock data_jpg %} |
|
141 | {%- endblock data_jpg %} | |
128 |
|
142 | |||
129 | {% block data_latex %} |
|
143 | {% block data_latex %} |
General Comments 0
You need to be logged in to leave comments.
Login now