File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -159,11 +159,12 @@ def render_output(out):
159159 if d := _g ('application/javascript' ): return f'<script>{ d } </script>'
160160 if d := _g ('text/markdown' ): return markdown (d , renderer = renderer )
161161 if d := _g ('text/latex' ): return f'<div class="math">${ d } $</div>'
162- if d := _g ('text/plain' ): return _pre (d )
163- if d := _g ('image/svg+xml' ): return d
164162 if include_imgs :
165163 if d := _g ('image/jpeg' ): return f'<img src="data:image/jpeg;base64,{ d } "/>'
166164 if d := _g ('image/png' ): return f'<img src="data:image/png;base64,{ d } "/>'
165+ if d := _g ('text/plain' ): return _pre (d )
166+ if d := _g ('image/svg+xml' ): return d
167+
167168 return ''
168169
169170 return '\n ' .join (map (render_output , outputs ))
Original file line number Diff line number Diff line change 892892 " if d := _g('application/javascript'): return f'<script>{d}</script>'\n " ,
893893 " if d := _g('text/markdown'): return markdown(d, renderer=renderer)\n " ,
894894 " if d := _g('text/latex'): return f'<div class=\" math\" >${d}$</div>'\n " ,
895- " if d := _g('text/plain'): return _pre(d)\n " ,
896- " if d := _g('image/svg+xml'): return d\n " ,
897895 " if include_imgs:\n " ,
898896 " if d := _g('image/jpeg'): return f'<img src=\" data:image/jpeg;base64,{d}\" />'\n " ,
899897 " if d := _g('image/png'): return f'<img src=\" data:image/png;base64,{d}\" />'\n " ,
898+ " if d := _g('text/plain'): return _pre(d)\n " ,
899+ " if d := _g('image/svg+xml'): return d\n " ,
900+ " \n " ,
900901 " return ''\n " ,
901902 " \n " ,
902903 " return '\\ n'.join(map(render_output, outputs))"
You can’t perform that action at this time.
0 commit comments