feat: 超连接
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user