From 40b607ef6f0500d36d1e7541b4229e45c866d5ae Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 26 Jul 2023 10:11:12 -0300 Subject: content: transformContent: stub thumb slot --- src/content/dependencies/transformContent.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js index 6873892b..ebb4e12a 100644 --- a/src/content/dependencies/transformContent.js +++ b/src/content/dependencies/transformContent.js @@ -194,6 +194,10 @@ export default { type: 'boolean', default: false, }, + + thumb: { + validate: v => v.is('small', 'medium', 'large'), + }, }, generate(data, relations, slots, {html, language}) { @@ -293,6 +297,8 @@ 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