Skip to content

Commit

Permalink
Quick guard against invalid markdown data
Browse files Browse the repository at this point in the history
  • Loading branch information
mmjee committed Apr 8, 2024
1 parent 059901f commit a1cf81c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tools/libpiped.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ class LibPiped {
}

markdown2HTML (data) {
if (data == null) {
return ''
}
return parseInline(data, {
breaks: true,
mangle: false,
Expand Down

0 comments on commit a1cf81c

Please sign in to comment.