« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/content/dependencies/transformContent.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js
index 151c2c2e..52fe0024 100644
--- a/src/content/dependencies/transformContent.js
+++ b/src/content/dependencies/transformContent.js
@@ -370,7 +370,9 @@ export default {
                 inline: true,
                 data:
                   html.tag('img',
-                    {src, width, height},
+                    src && {src},
+                    width && {width},
+                    height && {height},
 
                     pixelate &&
                       {class: 'pixelate'}),