« get me outta code hell

content, replacer: <img banish-thumbs> - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-06-16 21:34:56 -0300
committer(quasar) nebula <qznebula@protonmail.com>2026-06-16 21:34:56 -0300
commit0bf43d148c371d71b06e0c72df429a64bb366145 (patch)
tree1c8187b063ddda9ae0f675fbbefc8104bbd0d012
parent6e12da958149ceb695cf4cd2fc62dfe991d20045 (diff)
content, replacer: <img banish-thumbs>
-rw-r--r--src/content/dependencies/transformContent.js7
-rw-r--r--src/replacer.js1
2 files changed, 7 insertions, 1 deletions
diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js
index ad7530fe..ad603bbc 100644
--- a/src/content/dependencies/transformContent.js
+++ b/src/content/dependencies/transformContent.js
@@ -445,6 +445,7 @@ export default {
               height,
               align,
               pixelate,
+              banishThumbs,
             } = node;
 
             if (node.inline) {
@@ -496,7 +497,11 @@ export default {
 
               link: link ?? true,
               warnings: warnings ?? null,
-              thumb: slots.thumb,
+
+              thumb:
+                (banishThumbs
+                  ? null
+                  : slots.thumb),
             });
 
             if (width || height) {
diff --git a/src/replacer.js b/src/replacer.js
index e5e7cfa9..eef3c667 100644
--- a/src/replacer.js
+++ b/src/replacer.js
@@ -725,6 +725,7 @@ export function postprocessImages(inputNodes) {
       if (attributes.get('height')) node.height = parseInt(attributes.get('height'));
       if (attributes.get('align')) node.align = attributes.get('align');
       if (attributes.get('pixelate')) node.pixelate = true;
+      if (attributes.get('banish-thumbs')) node.banishThumbs = true;
 
       if (attributes.get('warning')) {
         node.warnings =