« get me outta code hell

replacer, content: allow warning attribute on image nodes - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util/replacer.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-02-18 16:52:45 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-02-18 16:53:56 -0400
commitc308769580169a85a6c01a5150bfb48d8d5e1aab (patch)
tree19613beb72878a0eacb429a81ad2d5a2d660df26 /src/util/replacer.js
parent0bfce8e39bf928fb512843db6b4a24fb992dc3c3 (diff)
replacer, content: allow warning attribute on image nodes
Diffstat (limited to 'src/util/replacer.js')
-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 00dfb80..8e6cac7 100644
--- a/src/util/replacer.js
+++ b/src/util/replacer.js
@@ -495,6 +495,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('warning')) imageNode.warning = attributes.get('warning');
         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;