##// END OF EJS Templates
don't unwrap/rewrap latex math in qtconsole
Min RK -
Show More
@@ -129,9 +129,7 b' class RichIPythonWidget(IPythonWidget):'
129 self._append_html(self.output_sep2, True)
129 self._append_html(self.output_sep2, True)
130 elif 'text/latex' in data:
130 elif 'text/latex' in data:
131 self._pre_image_append(msg, prompt_number)
131 self._pre_image_append(msg, prompt_number)
132 # latex_to_png takes care of handling $
132 png = latex_to_png(data['text/latex'], wrap=False)
133 latex = latex.strip('$')
134 png = latex_to_png(latex, wrap=True)
135 if png is not None:
133 if png is not None:
136 self._append_png(png, True)
134 self._append_png(png, True)
137 self._append_html(self.output_sep2, True)
135 self._append_html(self.output_sep2, True)
General Comments 0
You need to be logged in to leave comments. Login now