fix: handle empty markdown
Some checks failed
Deploy to SFTP Server / build (push) Failing after 4m50s
Some checks failed
Deploy to SFTP Server / build (push) Failing after 4m50s
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user