feature: just switch to discord-markdown instead

I can't be bothered to write my own parser so a billion dependencies it is
This commit is contained in:
Spectralitree
2021-12-11 14:13:39 +01:00
parent 50bbffd451
commit 615c6f3ef9
5 changed files with 70 additions and 28 deletions

View File

@@ -1,10 +1,10 @@
<script lang="ts">
import { Modal, Card, CardHeader, CardBody, CardTitle, Image, ModalHeader, Col, Row, Button } from 'sveltestrap';
import CardsHeader from '../CardsHeader.svelte';
import { parseMarkdown } from '../../functions';
import { toHTML } from 'discord-markdown';
export let user;
$: htmlDescription = parseMarkdown(user.description);
$: htmlDescription = toHTML(user.description, {embed: true});
let bannerOpen = false;
const toggleBannerModal = () => (bannerOpen = !bannerOpen);