diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-11-16 09:29:25 -0500 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-11-16 09:29:32 -0500 |
commit | 332ce86c3a528f313070580fcef11c15ab5f309a (patch) | |
tree | a9e752294b521e1ccf678fe38aefc78ebc16a409 | |
parent | 4009f2601e592945631515b9c7d0c1cab13b61d1 (diff) | |
download | freenode-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.js | 4 |
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 |