mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
parent
51758190e5
commit
7e61fb3aa4
@ -179,11 +179,14 @@ class WxRenderer {
|
|||||||
"wx_link"
|
"wx_link"
|
||||||
)}>${text}</a>`;
|
)}>${text}</a>`;
|
||||||
}
|
}
|
||||||
if (href === text || !status) {
|
if (href === text) {
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
if (status) {
|
||||||
let ref = addFootnote(title || text, href);
|
let ref = addFootnote(title || text, href);
|
||||||
return `<span ${getStyles("link")}>${text}<sup>[${ref}]</sup></span>`;
|
return `<span ${getStyles("link")}>${text}<sup>[${ref}]</sup></span>`;
|
||||||
|
}
|
||||||
|
return `<span ${getStyles("link")}>${text}</span>`;
|
||||||
};
|
};
|
||||||
renderer.strong = (text) =>
|
renderer.strong = (text) =>
|
||||||
`<strong ${getStyles("strong")}>${text}</strong>`;
|
`<strong ${getStyles("strong")}>${text}</strong>`;
|
||||||
|
Loading…
Reference in New Issue
Block a user