diff options
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 |
commit | cd35aa4215bec35ee5aee112288e2562b2d7237d (patch) | |
tree | fb96e133b643f878ae19e4a7ac57c94737ab312b /src/util | |
parent | 34c486175735dd2f546683883cda2542b4533053 (diff) |
content: image, transformContent: support custom img links
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/replacer.js | 1 |
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); |