From 3b583eade573b0c07b268ad24c28f0b9a9322cdb Mon Sep 17 00:00:00 2001 From: Max Richter Date: Wed, 22 Oct 2025 17:55:05 +0200 Subject: [PATCH] fix: handle empty markdown --- src/helpers/markdown.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/helpers/markdown.ts b/src/helpers/markdown.ts index 7e0ff3c..63f6f61 100644 --- a/src/helpers/markdown.ts +++ b/src/helpers/markdown.ts @@ -7,6 +7,7 @@ export function readDuration(markdown: string): number | undefined { } export function markdownToHtml(markdown: string): string { + if (!markdown) return ""; const md = new MarkdownIt({ html: false, // set to true only if you trust the source linkify: true,