« get me outta code hell

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:
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/transformContent.js18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js
index 757a9507..84881016 100644
--- a/src/content/dependencies/transformContent.js
+++ b/src/content/dependencies/transformContent.js
@@ -226,9 +226,16 @@ export default {
                 ? to('media.path', node.src.slice('media/'.length))
                 : node.src);
 
-            const {inline, link, width, height, style, pixelate} = node;
-
-            if (inline) {
+            const {
+              link,
+              style,
+              warning,
+              width,
+              height,
+              pixelate,
+            } = node;
+
+            if (node.inline) {
               return {
                 type: 'image',
                 inline: true,
@@ -259,6 +266,11 @@ export default {
                     height: height ?? null,
                     thumb: slots.thumb,
 
+                    warnings:
+                      (warning
+                        ? warning.split(', ')
+                        : null),
+
                     attributes: [
                       {class: 'content-image'},