« get me outta code hell

replacer, content: allow style attribute on image nodes - 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>2024-02-17 21:03:59 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-02-17 21:03:59 -0400
commit08657e2d05c5a375112222cd0aa6bc291bca542d (patch)
tree1bc1e40f26fec6fe2102abc1804de1045768f293 /src/util
parent23c7dace129e78cdc1c6aa9155fc1690750431d7 (diff)
replacer, content: allow style attribute on image nodes
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 9544328f..00dfb800 100644
--- a/src/util/replacer.js
+++ b/src/util/replacer.js
@@ -494,6 +494,7 @@ export function postprocessImages(inputNodes) {
         })();
 
         if (attributes.get('link')) imageNode.link = attributes.get('link');
+        if (attributes.get('style')) imageNode.style = attributes.get('style');
         if (attributes.get('width')) imageNode.width = parseInt(attributes.get('width'));
         if (attributes.get('height')) imageNode.height = parseInt(attributes.get('height'));
         if (attributes.get('pixelate')) imageNode.pixelate = true;