fix: handle empty markdown

This commit is contained in:
Max Richter
2025-10-22 17:55:05 +02:00
parent 2b7b5bb12f
commit c8860a503d

View File

@@ -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,