diff options
Diffstat (limited to 'src/content/dependencies/transformContent.js')
-rw-r--r-- | src/content/dependencies/transformContent.js | 6 |
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); } |