From f23023449b8cfeb978ae90f590746ef4b0b1dfe1 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 1 Jan 2023 17:42:15 -0400 Subject: replacer - don't assume thing.name for links --- src/util/replacer.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src') 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); -- cgit 1.3.0-6-gf8a5