mirror of
https://github.com/mmjee/Piped-Material.git
synced 2024-12-06 19:26:36 +01:00
Quick guard against invalid markdown data
This commit is contained in:
@@ -17,6 +17,9 @@ class LibPiped {
|
||||
}
|
||||
|
||||
markdown2HTML (data) {
|
||||
if (data == null) {
|
||||
return ''
|
||||
}
|
||||
return parseInline(data, {
|
||||
breaks: true,
|
||||
mangle: false,
|
||||
|
||||
Reference in New Issue
Block a user