aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorVonC <vonc@laposte.net>2013-10-29 14:28:29 +0100
committerVonC <vonc@laposte.net>2013-11-04 16:31:51 +0100
commit2cdd1afe85d027089bdb30689536e8743d7bb4ba (patch)
treeb8e9d2861edb9077ded24728ec2f2e2f4ec6cfe1 /plugin
parent492a09495578655076e3b4e8492918940cd0f1f2 (diff)
downloadfosdem-2018-presentation-2cdd1afe85d027089bdb30689536e8743d7bb4ba.tar
fosdem-2018-presentation-2cdd1afe85d027089bdb30689536e8743d7bb4ba.tar.gz
Remove console.log debugs, and fix tabs
Diffstat (limited to 'plugin')
-rwxr-xr-xplugin/markdown/markdown.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js
index 7c4660b..00d2538 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 += '<section '+ options.attributes + ' ' + dataAttributes + '>';
@@ -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 += '<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]
- // console.log('Slide attributes ' + options.slideAttributesSeparator + ' => ' + slideAttributes)
markdownSections += '<section '+ options.attributes + ' ' + slideAttributes +' data-markdown>' + createMarkdownSlide( content, options ) + '</section>';
}
}