« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/content/dependencies/transformContent.js6
1 files changed, 6 insertions, 0 deletions
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);
     }