mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
chore: npm run format
This commit is contained in:
@@ -10,7 +10,11 @@ const tagMap: Record<string, string> = {
|
||||
IFRAME: 'iframe'
|
||||
};
|
||||
|
||||
export async function parseMarkdown(md: string, preventExternal: boolean = true, allowTrustedDomains: boolean = true): Promise<string> {
|
||||
export async function parseMarkdown(
|
||||
md: string,
|
||||
preventExternal: boolean = true,
|
||||
allowTrustedDomains: boolean = true
|
||||
): Promise<string> {
|
||||
const html = await marked.parse(md);
|
||||
let dom: WindowLike & { document: Document };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user