mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00

* Use async function in PlainTextInput * Clean up PlainTextInput * Refactor logic from {Rich,Plain}TextInput into own files * Remove prohibited tags on content.subscribe which also parses the html
14 lines
490 B
Svelte
14 lines
490 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" context="module">
|
|
import { Mathjax } from "../editable/mathjax-element";
|
|
import { decoratedElements } from "./DecoratedElements.svelte";
|
|
|
|
decoratedElements.push(Mathjax);
|
|
|
|
import { parsingInstructions } from "./plain-text-input";
|
|
|
|
parsingInstructions.push("<style>anki-mathjax { white-space: pre; }</style>");
|
|
</script>
|