feat: 超连接

This commit is contained in:
hackrobot
2025-03-28 09:56:38 -05:00
parent 3b93ce10b0
commit e6110f8d69

View File

@@ -285,14 +285,17 @@ renderer.link = function (href, title, text) {
return text; return text;
} }
href = cleanHref; href = cleanHref;
console.log('href-',href)
let out = '<a href="' + href + '"'; let out = '<a href="' + href + '"';
if (title) { if (title) {
out += ' title="' + title + '"'; out += ' title="' + title + '"';
} }
out += '>' + `🌐` + text + '</a>'; out += '>' + `🔗` + text + '</a>';
// out += ">" +`🌐`+ text + "</a>"+`(${href})`; // out += ">" +`🔗`+ text + "</a>"+`(${href})`;
// console.log('out-',out)
return out;
return out+`: ${href}`;
}; };
renderer.paragraph = function (text) { renderer.paragraph = function (text) {