From 2cdd1afe85d027089bdb30689536e8743d7bb4ba Mon Sep 17 00:00:00 2001 From: VonC Date: Tue, 29 Oct 2013 14:28:29 +0100 Subject: [PATCH] Remove console.log debugs, and fix tabs --- plugin/markdown/markdown.js | 4 ---- test/test-markdown-attributes.html | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js index 7c4660b8..00d25380 100755 --- a/plugin/markdown/markdown.js +++ b/plugin/markdown/markdown.js @@ -185,11 +185,9 @@ slideAttributes = matchAttributes ? matchAttributes[1] : ""; dataAttributes = ""; if( slideAttributes != "" ) { - // console.log('all attr=' + slideAttributes ); // http://stackoverflow.com/questions/18025762/javascript-regex-replace-all-word-characters-except-word-characters-between-ch // Keep only data-attributes for the parent slide section. dataAttributes = slideAttributes.replace( /(data-\S+=\"[^\"]+?\")|\w|[\"=]/g, function(a, b) { return b || ''; }); - // console.log('new attr=' + dataAttributes ); } markdownSections += '
'; @@ -197,7 +195,6 @@ matchAttributes = slideAttributesSeparatorRegex.exec( child ); slideAttributes = matchAttributes ? matchAttributes[1] : ""; child = matchAttributes ? child.replace( slideAttributesSeparatorRegex,"" ) : child - // console.log('slide attributes ' + options.slideAttributesSeparator + ' => ' + slideAttributes) markdownSections += '
' + createMarkdownSlide( child, options ) + '
'; } ); @@ -207,7 +204,6 @@ matchAttributes = slideAttributesSeparatorRegex.exec( sectionStack[i] ); slideAttributes = matchAttributes ? matchAttributes[1] : ""; content = matchAttributes ? sectionStack[i].replace( slideAttributesSeparatorRegex,"" ) : sectionStack[i] - // console.log('Slide attributes ' + options.slideAttributesSeparator + ' => ' + slideAttributes) markdownSections += '
' + createMarkdownSlide( content, options ) + '
'; } } diff --git a/test/test-markdown-attributes.html b/test/test-markdown-attributes.html index 780f2be8..ed49ad45 100644 --- a/test/test-markdown-attributes.html +++ b/test/test-markdown-attributes.html @@ -25,8 +25,8 @@
+ data-attributes="^\s*?--\s(.*?)$" + data-charset="utf-8">