diff --git a/myst_nb/render_outputs.py b/myst_nb/render_outputs.py index 1882a8cd..943bdea5 100644 --- a/myst_nb/render_outputs.py +++ b/myst_nb/render_outputs.py @@ -34,10 +34,10 @@ def get_default_render_priority(builder: str) -> Optional[List[str]]: "application/javascript", "text/html", "image/svg+xml", + "text/latex", "image/png", "image/jpeg", "text/markdown", - "text/latex", "text/plain", ) for builder in ( @@ -54,10 +54,10 @@ def get_default_render_priority(builder: str) -> Optional[List[str]]: } # TODO: add support for "image/svg+xml" priority["latex"] = ( + "text/latex", "application/pdf", "image/png", "image/jpeg", - "text/latex", "text/markdown", "text/plain", ) diff --git a/tests/test_render_outputs/test_complex_outputs.xml b/tests/test_render_outputs/test_complex_outputs.xml index 519bb609..c92f8519 100644 --- a/tests/test_render_outputs/test_complex_outputs.xml +++ b/tests/test_render_outputs/test_complex_outputs.xml @@ -209,7 +209,8 @@ f = y(n)-2*y(n-1/sym.pi)-5*y(n-2) sym.rsolve(f,y(n),[1,4]) - + + \displaystyle \left(\sqrt{5} i\right)^{\alpha} \left(\frac{1}{2} - \frac{2 \sqrt{5} i}{5}\right) + \left(- \sqrt{5} i\right)^{\alpha} \left(\frac{1}{2} + \frac{2 \sqrt{5} i}{5}\right) diff --git a/tests/test_render_outputs/test_complex_outputs_latex.xml b/tests/test_render_outputs/test_complex_outputs_latex.xml index 4312ce6c..0ca07023 100644 --- a/tests/test_render_outputs/test_complex_outputs_latex.xml +++ b/tests/test_render_outputs/test_complex_outputs_latex.xml @@ -169,7 +169,8 @@ f = y(n)-2*y(n-1/sym.pi)-5*y(n-2) sym.rsolve(f,y(n),[1,4]) - + + \displaystyle \left(\sqrt{5} i\right)^{\alpha} \left(\frac{1}{2} - \frac{2 \sqrt{5} i}{5}\right) + \left(- \sqrt{5} i\right)^{\alpha} \left(\frac{1}{2} + \frac{2 \sqrt{5} i}{5}\right)