From c308769580169a85a6c01a5150bfb48d8d5e1aab Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 18 Feb 2024 16:52:45 -0400 Subject: replacer, content: allow warning attribute on image nodes --- src/util/replacer.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/util') 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; -- cgit 1.3.0-6-gf8a5