Quick guard against invalid markdown data

This commit is contained in:
root
2024-04-09 00:11:15 +05:30
parent 059901f583
commit a1cf81c6b1
+3
View File
@@ -17,6 +17,9 @@ class LibPiped {
}
markdown2HTML (data) {
if (data == null) {
return ''
}
return parseInline(data, {
breaks: true,
mangle: false,