Set fixed fontSizef or mathjax in editor for now

This commit is contained in:
Henrik Giesel 2021-08-07 21:27:50 +02:00
parent b5900da0b4
commit 45d0cc49e6

View file

@ -9,9 +9,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
export let mathjax: string; export let mathjax: string;
export let block: boolean; export let block: boolean;
export let fontSize: number = 20; /* have fixed fontSize for normal */
export const fontSize: number = 20;
const nightMode = getContext(nightModeKey); const nightMode = getContext<boolean>(nightModeKey);
$: [converted, title] = convertMathjax(mathjax, nightMode, fontSize); $: [converted, title] = convertMathjax(mathjax, nightMode, fontSize);
$: encoded = encodeURIComponent(converted); $: encoded = encodeURIComponent(converted);