Remove console.log debugs, and fix tabs
authorVonC <vonc@laposte.net>
Tue, 29 Oct 2013 13:28:29 +0000 (14:28 +0100)
committerVonC <vonc@laposte.net>
Mon, 4 Nov 2013 15:31:51 +0000 (16:31 +0100)
plugin/markdown/markdown.js
test/test-markdown-attributes.html

index 7c4660b82f37aa1d30689df6d79481257bdbe9c5..00d253803bb945df67958e93acaad41951729f3a 100755 (executable)
                                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 += '<section '+ options.attributes + ' ' + dataAttributes + '>';
 
                                        matchAttributes = slideAttributesSeparatorRegex.exec( child );
                                        slideAttributes = matchAttributes ? matchAttributes[1] : "";
                                        child = matchAttributes ? child.replace( slideAttributesSeparatorRegex,"" ) : child
-                                       // console.log('slide attributes ' + options.slideAttributesSeparator + ' => ' + slideAttributes)
                                        markdownSections += '<section ' + slideAttributes + ' data-markdown>' +  createMarkdownSlide( child, options ) + '</section>';
                                } );
 
                                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 += '<section '+ options.attributes + ' ' + slideAttributes +' data-markdown>' + createMarkdownSlide( content, options ) + '</section>';
                        }
                }
index 780f2be89137f72d197837e108e86dbbb4372bfa..ed49ad455a1bcf9044c270ef93410678644d9aac 100644 (file)
@@ -25,8 +25,8 @@
                                <section        data-markdown data-separator="^\n\n\n"
                                                                        data-vertical="^\n\n"
                                                                        data-notes="^Note:"
-                       data-attributes="^\s*?--\s(.*?)$"
-                       data-charset="utf-8">
+                                                                       data-attributes="^\s*?--\s(.*?)$"
+                                                                       data-charset="utf-8">
                                        <script type="text/template">
                                                # Test attributes in Markdown
                                                ## Slide 1