mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
Underline markdown links that have emojis
This commit is contained in:
@@ -111,7 +111,11 @@
|
||||
console.warn("Not able to parse url", e);
|
||||
}
|
||||
// Don't underline <a> tags that contain images.
|
||||
if (e.firstElementChild instanceof HTMLImageElement) {
|
||||
// Make an exception for emojis.
|
||||
if (
|
||||
e.firstElementChild instanceof HTMLImageElement &&
|
||||
!e.firstElementChild.classList.contains("txt-emoji")
|
||||
) {
|
||||
e.classList.add("no-underline");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user