From 300f4811b6b230aae85296a11c730c944ca8d7ff Mon Sep 17 00:00:00 2001 From: Jens Heinrich Date: Thu, 28 Oct 2021 11:13:42 +0200 Subject: [PATCH] Add initial svg handling Removes a TODO Adds a supported mime type for latex This currently creates a svg-file from the inline svg component, which can be handled by other tools later This basically fixes #370 as their the svg is now not handled as an text type anymore --- myst_nb/render_outputs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/myst_nb/render_outputs.py b/myst_nb/render_outputs.py index 1882a8cd..c09a6248 100644 --- a/myst_nb/render_outputs.py +++ b/myst_nb/render_outputs.py @@ -52,9 +52,9 @@ def get_default_render_priority(builder: str) -> Optional[List[str]]: "epub", ) } - # TODO: add support for "image/svg+xml" priority["latex"] = ( "application/pdf", + "image/svg+xml", "image/png", "image/jpeg", "text/latex",