aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2012-11-16 09:29:25 -0500
committerHakim El Hattab <hakim.elhattab@gmail.com>2012-11-16 09:29:32 -0500
commit332ce86c3a528f313070580fcef11c15ab5f309a (patch)
treea9e752294b521e1ccf678fe38aefc78ebc16a409
parent4009f2601e592945631515b9c7d0c1cab13b61d1 (diff)
downloadfreenode-live-2017-presentation-332ce86c3a528f313070580fcef11c15ab5f309a.tar
freenode-live-2017-presentation-332ce86c3a528f313070580fcef11c15ab5f309a.tar.gz
null check for notes in markdown parser (#253)
-rw-r--r--plugin/markdown/markdown.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js
index 6331171..b1660a1 100644
--- a/plugin/markdown/markdown.js
+++ b/plugin/markdown/markdown.js
@@ -29,7 +29,9 @@
section.innerHTML = (new Showdown.converter()).makeHtml(text);
- section.appendChild( notes );
+ if( notes ) {
+ section.appendChild( notes );
+ }
}
})(); \ No newline at end of file