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;
}
href = cleanHref;
console.log('href-',href)
let out = '<a href="' + href + '"';
if (title) {
out += ' title="' + title + '"';
}
out += '>' + `🌐` + text + '</a>';
// out += ">" +`🌐`+ text + "</a>"+`(${href})`;
out += '>' + `🔗` + text + '</a>';
// out += ">" +`🔗`+ text + "</a>"+`(${href})`;
// console.log('out-',out)
return out;
return out+`: ${href}`;
};
renderer.paragraph = function (text) {