aboutsummaryrefslogtreecommitdiff
path: root/plugin/markdown
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2013-10-11 22:05:43 -0400
committerHakim El Hattab <hakim.elhattab@gmail.com>2013-10-11 22:05:43 -0400
commit942724238fee5f2fe7480df3a7fbf033dcda6ce9 (patch)
tree03c0a0feb2c604076fcb4823c196e052fa7c19a7 /plugin/markdown
parentf8fed1358aee37b5eb86e79da40318eded8daba6 (diff)
downloadfosdem-2018-presentation-942724238fee5f2fe7480df3a7fbf033dcda6ce9.tar
fosdem-2018-presentation-942724238fee5f2fe7480df3a7fbf033dcda6ce9.tar.gz
better check for arrays in markdown plugin
Diffstat (limited to 'plugin/markdown')
-rwxr-xr-xplugin/markdown/markdown.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js
index 4cf0cc5..61d6987 100755
--- a/plugin/markdown/markdown.js
+++ b/plugin/markdown/markdown.js
@@ -171,7 +171,7 @@
// flatten the hierarchical stack, and insert <section data-markdown> tags
for( var i = 0, len = sectionStack.length; i < len; i++ ) {
// vertical
- if( sectionStack[i].propertyIsEnumerable( 'length' ) && typeof sectionStack[i].splice === 'function' ) {
+ if( sectionStack[i] instanceof Array ) {
markdownSections += '<section '+ options.attributes +'>';
sectionStack[i].forEach( function( child ) {