From f22f380b964843b6b7017a70900d170cc00a55fb Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Thu, 14 Aug 2025 16:31:25 +0100 Subject: [PATCH] feat: add image preprocessor component --- src/components/EntryBody.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/EntryBody.tsx b/src/components/EntryBody.tsx index 2fc3892..a6ae639 100644 --- a/src/components/EntryBody.tsx +++ b/src/components/EntryBody.tsx @@ -24,6 +24,12 @@ const EntryLoadingSkeleton = () => { ) } +const ImagePreprocessor = (src) => { + const filename = src.src.split("/").pop() + const s3RootUrl = "https://eolas.s3.systemsobscure.net/" + return +} + export default function EntryBody({ body, isLoading }) { if (isLoading) { return @@ -88,6 +94,7 @@ export default function EntryBody({ body, isLoading }) { {children} ), + img: ({ children, src }) => , }} > {body}