From 84290316071c23c35661f556a9959b86a33b8314 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 18 Feb 2024 17:03:46 -0400 Subject: content, replacer: move warning splitting into replacer --- src/content/dependencies/transformContent.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/content/dependencies/transformContent.js') diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js index 84881016..69030224 100644 --- a/src/content/dependencies/transformContent.js +++ b/src/content/dependencies/transformContent.js @@ -229,7 +229,7 @@ export default { const { link, style, - warning, + warnings, width, height, pixelate, @@ -264,13 +264,9 @@ export default { link: link ?? true, width: width ?? null, height: height ?? null, + warnings: warnings ?? null, thumb: slots.thumb, - warnings: - (warning - ? warning.split(', ') - : null), - attributes: [ {class: 'content-image'}, -- cgit 1.3.0-6-gf8a5