mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-10 15:57:53 +00:00
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:
parent
50bbffd451
commit
615c6f3ef9
5 changed files with 70 additions and 28 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue