projects
/
reveal.js.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8fed13
)
better check for arrays in markdown plugin
author
Hakim El Hattab
<hakim.elhattab@gmail.com>
Sat, 12 Oct 2013 02:05:43 +0000
(22:05 -0400)
committer
Hakim El Hattab
<hakim.elhattab@gmail.com>
Sat, 12 Oct 2013 02:05:43 +0000
(22:05 -0400)
plugin/markdown/markdown.js
patch
|
blob
|
history
diff --git
a/plugin/markdown/markdown.js
b/plugin/markdown/markdown.js
index 4cf0cc583628a1ce9dc54a7d3e948e032cbb6bda..61d698795e0f95d1b635e3f8f7e1196c79ab2ee0 100755
(executable)
--- 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 ) {