mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Set fixed fontSizef or mathjax in editor for now
This commit is contained in:
parent
b5900da0b4
commit
45d0cc49e6
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 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);
|
||||
$: encoded = encodeURIComponent(converted);
|
||||
|
|
Loading…
Reference in a new issue