« get me outta code hell

language: return html.blank() from formatExternalLink - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-03-31 19:06:32 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-03-31 19:07:45 -0300
commitbadf0e751a24c55c0c5b7e13674ca71aa0287664 (patch)
tree9518b0dd327aa6a160542750da22385fa0d8086a /src/content
parentbc1ac5e6e89d64136ba5c8bbaf8cee22e6d1d5aa (diff)
language: return html.blank() from formatExternalLink
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/linkExternal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/dependencies/linkExternal.js b/src/content/dependencies/linkExternal.js
index f0947cb7..afdfe6ef 100644
--- a/src/content/dependencies/linkExternal.js
+++ b/src/content/dependencies/linkExternal.js
@@ -33,7 +33,7 @@ export default {
       });
 
     // Fall back to platform if nothing matched the desired style.
-    if (!formattedText && slots.style !== 'platform') {
+    if (html.isBlank(formattedText) && slots.style !== 'platform') {
       formattedText =
         language.formatExternalLink(data.url, {
           style: 'platform',