Skip to content

Commit

Permalink
FIX: Ensure Marked parses only non-empty content
Browse files Browse the repository at this point in the history
  • Loading branch information
sanand0 committed Oct 29, 2024
1 parent 29f8252 commit 6409dcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,6 @@ ${top(graphs.sankey.linkData, 10, (d) => -d.Hours, linkName)}
],
}),
})) {
$summary.innerHTML = marked.parse(content);
if (content) $summary.innerHTML = marked.parse(content);
}
}

0 comments on commit 6409dcd

Please sign in to comment.