mirror of
https://github.com/ankitects/anki.git
synced 2026-01-18 00:09:01 -05:00
Set fixed fontSizef or mathjax in editor for now
This commit is contained in:
parent
6c0e649c79
commit
9d671581ac
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue