From: VonC Date: Mon, 14 Oct 2013 10:33:55 +0000 (+0200) Subject: Fix markdown.js slideAttributesSeparator selection. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=83ee2eb00e66124376e404b15ba8ca58d8221f85;p=reveal.js.git Fix markdown.js slideAttributesSeparator selection. --- diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js index cf2dd29..3b1f9c8 100755 --- a/plugin/markdown/markdown.js +++ b/plugin/markdown/markdown.js @@ -207,7 +207,7 @@ matchAttributes = slideAttributesSeparatorRegex.exec( sectionStack[i] ); slideAttributes = matchAttributes ? matchAttributes[1] : ""; content = matchAttributes ? sectionStack[i].replace( slideAttributesSeparatorRegex,"" ) : sectionStack[i] - //console.log('Slide attributes ' + options.slideAttributesSeparator + ' => ' + slideAttributes) + // console.log('Slide attributes ' + options.slideAttributesSeparator + ' => ' + slideAttributes) markdownSections += '
' + createMarkdownSlide( content, options ) + '
'; } } @@ -281,7 +281,8 @@ separator: section.getAttribute( 'data-separator' ), verticalSeparator: section.getAttribute( 'data-vertical' ), notesSeparator: section.getAttribute( 'data-notes' ), - attributes: getForwardedAttributes( section ) + attributes: getForwardedAttributes( section ), + slideAttributesSeparator: section.getAttribute( 'data-attributes' ), }); }