diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/content/dependencies/transformContent.js | 7 | ||||
| -rw-r--r-- | src/replacer.js | 1 |
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 = |