From 1ca05b00ec6f674d4abd8687fdb54f924ae10cda Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 4 Dec 2022 20:03:27 +1000 Subject: [PATCH] Exempt MathJax images from image shrinking https://forums.ankiweb.net/t/anki-2-1-55-beta-mathjax-preview/23529/18 --- ts/editable/Mathjax.svelte | 1 + ts/editable/ResizableImage.svelte | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ts/editable/Mathjax.svelte b/ts/editable/Mathjax.svelte index 8c90044d9..184737a04 100644 --- a/ts/editable/Mathjax.svelte +++ b/ts/editable/Mathjax.svelte @@ -84,6 +84,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html src="data:image/svg+xml,{encoded}" class:block class:empty + class="mathjax" style:--vertical-center="{verticalCenter}px" style:--font-size="{fontSize}px" alt="Mathjax" diff --git a/ts/editable/ResizableImage.svelte b/ts/editable/ResizableImage.svelte index ea78f3a87..37c70e413 100644 --- a/ts/editable/ResizableImage.svelte +++ b/ts/editable/ResizableImage.svelte @@ -3,7 +3,7 @@ Copyright: Ankitects Pty Ltd and contributors License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html -->