mirror of
https://github.com/nx-bat/discordbot-ng.git
synced 2026-09-22 10:29:10 -04:00
Fix url parsing
This commit is contained in:
@@ -48,6 +48,8 @@ export async function parseDTextToMarkdown(text: string): Promise<string> {
|
||||
out.push(']');
|
||||
out.push(`(${node.href.startsWith('/') ? config.E621_BASE_URL : ''}${node.href})`);
|
||||
}
|
||||
} else if (node.linkType == 'url') {
|
||||
out.push(`${node.href.startsWith('/') ? config.E621_BASE_URL : ''}${node.href}`);
|
||||
} else {
|
||||
out.push('[');
|
||||
markdownHandlers.link(node, out, ctx);
|
||||
|
||||
Reference in New Issue
Block a user