fix: some image loading
Some checks failed
Deploy to SFTP Server / build (push) Failing after 1m55s

This commit is contained in:
Max Richter
2025-10-24 13:43:34 +02:00
parent 231bdb09a3
commit 6230126d38
11 changed files with 120 additions and 92 deletions

View File

@@ -4,6 +4,7 @@ const parser = new MarkdownIt();
export function readDuration(markdown: string): number | undefined {
if (!markdown) return;
const words = markdown.split(" ")?.filter(Boolean)?.length;
if (!words) return;
return words && Math.round(words / 250);
}