diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-07-30 21:44:12 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-07-30 21:44:12 -0300 |
commit | 6c2dea8ec54a4dd48a9107d8a61fe151e9aace37 (patch) | |
tree | cf311311517d149f3d769e48049c5e1a62de218f | |
parent | ac00cb19d57f79b784461ef924f9858260a48333 (diff) |
content: transformContent: respect thumb slot
-rw-r--r-- | src/content/dependencies/transformContent.js | 3 |
1 files changed, 1 insertions, 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); } |