From 08657e2d05c5a375112222cd0aa6bc291bca542d Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 17 Feb 2024 21:03:59 -0400 Subject: replacer, content: allow style attribute on image nodes --- src/content/dependencies/transformContent.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/content') diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js index 1bba16e3..757a9507 100644 --- a/src/content/dependencies/transformContent.js +++ b/src/content/dependencies/transformContent.js @@ -226,7 +226,7 @@ export default { ? to('media.path', node.src.slice('media/'.length)) : node.src); - const {inline, link, width, height, pixelate} = node; + const {inline, link, width, height, style, pixelate} = node; if (inline) { return { @@ -237,6 +237,7 @@ export default { src && {src}, width && {width}, height && {height}, + style && {style}, pixelate && {class: 'pixelate'}), -- cgit 1.3.0-6-gf8a5