|
@@ -185,11 +185,9 @@
|
|
|
slideAttributes = matchAttributes ? matchAttributes[1] : "";
|
|
|
dataAttributes = "";
|
|
|
if( slideAttributes != "" ) {
|
|
|
-
|
|
|
|
|
|
|
|
|
dataAttributes = slideAttributes.replace( /(data-\S+=\"[^\"]+?\")|\w|[\"=]/g, function(a, b) { return b || ''; });
|
|
|
-
|
|
|
}
|
|
|
markdownSections += '<section '+ options.attributes + ' ' + dataAttributes + '>';
|
|
|
|
|
@@ -197,7 +195,6 @@
|
|
|
matchAttributes = slideAttributesSeparatorRegex.exec( child );
|
|
|
slideAttributes = matchAttributes ? matchAttributes[1] : "";
|
|
|
child = matchAttributes ? child.replace( slideAttributesSeparatorRegex,"" ) : child
|
|
|
-
|
|
|
markdownSections += '<section ' + slideAttributes + ' data-markdown>' + createMarkdownSlide( child, options ) + '</section>';
|
|
|
} );
|
|
|
|
|
@@ -207,7 +204,6 @@
|
|
|
matchAttributes = slideAttributesSeparatorRegex.exec( sectionStack[i] );
|
|
|
slideAttributes = matchAttributes ? matchAttributes[1] : "";
|
|
|
content = matchAttributes ? sectionStack[i].replace( slideAttributesSeparatorRegex,"" ) : sectionStack[i]
|
|
|
-
|
|
|
markdownSections += '<section '+ options.attributes + ' ' + slideAttributes +' data-markdown>' + createMarkdownSlide( content, options ) + '</section>';
|
|
|
}
|
|
|
}
|