mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 13:17:12 -05: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
12 lines
416 B
TypeScript
12 lines
416 B
TypeScript
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
import { decoratedElements } from "../DecoratedElements.svelte";
|
|
|
|
export function storedToUndecorated(html: string): string {
|
|
return decoratedElements.toUndecorated(html);
|
|
}
|
|
|
|
export function undecoratedToStored(html: string): string {
|
|
return decoratedElements.toStored(html);
|
|
}
|