« 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/content/dependencies
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/content/dependencies
parent23c7dace129e78cdc1c6aa9155fc1690750431d7 (diff)
replacer, content: allow style attribute on image nodes
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/transformContent.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js
index 1bba16e3..757a9507 100644
--- a/src/content/dependencies/transformContent.js
+++ b/src/content/dependencies/transformContent.js
@@ -226,7 +226,7 @@ export default {
                 ? to('media.path', node.src.slice('media/'.length))
                 : node.src);
 
-            const {inline, link, width, height, pixelate} = node;
+            const {inline, link, width, height, style, pixelate} = node;
 
             if (inline) {
               return {
@@ -237,6 +237,7 @@ export default {
                     src && {src},
                     width && {width},
                     height && {height},
+                    style && {style},
 
                     pixelate &&
                       {class: 'pixelate'}),