Fix url parsing

This commit is contained in:
Tarrgon
2026-06-15 13:29:20 -04:00
parent 81729388fc
commit e71caf1a07
+2
View File
@@ -48,6 +48,8 @@ export async function parseDTextToMarkdown(text: string): Promise<string> {
out.push(']'); out.push(']');
out.push(`(${node.href.startsWith('/') ? config.E621_BASE_URL : ''}${node.href})`); 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 { } else {
out.push('['); out.push('[');
markdownHandlers.link(node, out, ctx); markdownHandlers.link(node, out, ctx);