diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-07-26 10:11:12 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-07-26 10:11:12 -0300 |
commit | 40b607ef6f0500d36d1e7541b4229e45c866d5ae (patch) | |
tree | 979dfdc6a601dbbc2520751249cd89e1095677c7 /src | |
parent | de409aecc04718cdf2874d9876bc16ffdb645bfa (diff) |
content: transformContent: stub thumb slot
Diffstat (limited to 'src')
-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); } |