import { currentUser, loggedIn } from "./stores"; import PKAPI from "./api"; import type Sys from './api/system'; function blockQuote(text: string) { let match = text.match(/(?<=\n|^)(> [^\n]*(?:\n>[^\n]*)*)/gim); let parse: string[] = []; for (let i = 0; i < match.length; i++) { parse[i] = match[i].replace(/(?<=\n|^)> ?/gim, ""); text = text.replace(match[i], `