From 6c2dea8ec54a4dd48a9107d8a61fe151e9aace37 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 30 Jul 2023 21:44:12 -0300 Subject: content: transformContent: respect thumb slot --- src/content/dependencies/transformContent.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js index 2c0a8e41..d003c5b8 100644 --- a/src/content/dependencies/transformContent.js +++ b/src/content/dependencies/transformContent.js @@ -356,6 +356,7 @@ export default { link: true, width: width ?? null, height: height ?? null, + thumb: slots.thumb, }), }; } @@ -460,8 +461,6 @@ export default { // Expand line breaks which are at the end of a quote. .replace(/(?<=^>.*)\n+(?!^>)/gm, '\n\n'); - // TODO for images: make sure to use slots.thumb! - return marked.parse(markedInput, markedOptions); } -- cgit 1.3.0-6-gf8a5