diff --git a/src/assets/scripts/renderers/wx-renderer.js b/src/assets/scripts/renderers/wx-renderer.js index dc4ff88..c53b72c 100644 --- a/src/assets/scripts/renderers/wx-renderer.js +++ b/src/assets/scripts/renderers/wx-renderer.js @@ -179,11 +179,14 @@ class WxRenderer { "wx_link" )}>${text}`; } - if (href === text || !status) { + if (href === text) { return text; } - let ref = addFootnote(title || text, href); - return `${text}[${ref}]`; + if (status) { + let ref = addFootnote(title || text, href); + return `${text}[${ref}]`; + } + return `${text}`; }; renderer.strong = (text) => `${text}`;