We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e897318 commit 1f48d59Copy full SHA for 1f48d59
1 file changed
src/TextFormatting.js
@@ -36,8 +36,8 @@ function textFormatting(str) {
36
} else {
37
return "";
38
}
39
- } else if (linkName) {
40
- return `<a href='${linkUrl}'>${linkName}</a>`;
+ } else if (linkUrl) {
+ return `<a href='${linkUrl}'>${linkName || linkUrl}</a>`;
41
} else if (imgAlt) {
42
return `<img src='${imgPath}' alt='${imgAlt}'/>`;
43
} else if (code) {
0 commit comments