Merge branch 'patch-1' of https://github.com/ynonp/unix2-bash-scripts-slides into dev
This commit is contained in:
commit
3a8e6dd4ba
@ -27,6 +27,10 @@
|
||||
|
||||
};
|
||||
|
||||
var twrap = function(el) {
|
||||
return '<script type="text/template">' + el + '</script>';
|
||||
};
|
||||
|
||||
var slidifyMarkdown = function(markdown, separator, vertical) {
|
||||
|
||||
separator = separator || '^\n---\n$';
|
||||
@ -74,8 +78,8 @@
|
||||
// flatten the hierarchical stack, and insert <section data-markdown> tags
|
||||
for( var k = 0, klen = sectionStack.length; k < klen; k++ ) {
|
||||
markdownSections += typeof sectionStack[k] === 'string'
|
||||
? '<section data-markdown>' + sectionStack[k] + '</section>'
|
||||
: '<section><section data-markdown>' + sectionStack[k].join('</section><section data-markdown>') + '</section></section>';
|
||||
? '<section data-markdown>' + twrap( sectionStack[k] ) + '</section>'
|
||||
: '<section><section data-markdown>' + sectionStack[k].map(twrap).join('</section><section data-markdown>') + '</section></section>';
|
||||
}
|
||||
|
||||
return markdownSections;
|
||||
|
Loading…
Reference in New Issue
Block a user