fix: handle empty markdown
Some checks failed
Deploy to SFTP Server / build (push) Failing after 4m50s

This commit is contained in:
Max Richter
2025-10-22 17:55:05 +02:00
parent 342f83c783
commit 3b583eade5

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,