mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
12 lines
316 B
Svelte
12 lines
316 B
Svelte
<!--
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
-->
|
|
<script lang="ts">
|
|
import { convertMathjax } from "./mathjax";
|
|
|
|
export let mathjax: string;
|
|
$: converted = convertMathjax(`\\(${mathjax}\\)`);
|
|
</script>
|
|
|
|
{@html converted}
|