« get me outta code hell

content: image, transformContent: support custom img 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-07-30 21:55:05 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-07-30 21:55:05 -0300
commitcd35aa4215bec35ee5aee112288e2562b2d7237d (patch)
treefb96e133b643f878ae19e4a7ac57c94737ab312b /src/util
parent34c486175735dd2f546683883cda2542b4533053 (diff)
content: image, transformContent: support custom img links
Diffstat (limited to 'src/util')
-rw-r--r--src/util/replacer.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/replacer.js b/src/util/replacer.js
index 7240940d..caf16bbf 100644
--- a/src/util/replacer.js
+++ b/src/util/replacer.js
@@ -392,6 +392,7 @@ export function postprocessImages(inputNodes) {
           return false;
         })();
 
+        if (attributes.link) imageNode.link = attributes.link;
         if (attributes.width) imageNode.width = parseInt(attributes.width);
         if (attributes.height) imageNode.height = parseInt(attributes.height);