« get me outta code hell

replacer - don't assume thing.name for links - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-01-01 17:42:15 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-01-01 17:42:15 -0400
commitf23023449b8cfeb978ae90f590746ef4b0b1dfe1 (patch)
tree3431cc6fc28919123cc2087b23979785c1b828d7 /src/util
parent2d5a10cc50188e823707ba772dee2bd97f1b02cc (diff)
replacer - don't assume thing.name for links
Diffstat (limited to 'src/util')
-rw-r--r--src/util/replacer.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/util/replacer.js b/src/util/replacer.js
index 9d602ca9..ea957eda 100644
--- a/src/util/replacer.js
+++ b/src/util/replacer.js
@@ -376,12 +376,7 @@ function evaluateTag(node, opts) {
   const label =
     enteredLabel ||
     (transformName && transformName(value.name, node, input)) ||
-    value.name;
-
-  if (!valueFn && !label) {
-    logWarn`The link ${source} requires a label be entered!`;
-    return source;
-  }
+    null;
 
   const hash = node.data.hash && transformNodes(node.data.hash, opts);