« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-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);