From ec72e8cbc7e97af9aae28a37a0b92829b2bfe301 Mon Sep 17 00:00:00 2001 From: VonC Date: Thu, 10 Oct 2013 11:45:39 +0200 Subject: [PATCH] Fix markdown vertical wrapping section element generation. --- plugin/markdown/markdown.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js index 23b522e..084ba41 100755 --- a/plugin/markdown/markdown.js +++ b/plugin/markdown/markdown.js @@ -183,14 +183,15 @@ firstChild = sectionStack[i][0]; matchAttributes = slideAttributesSeparatorRegex.exec(firstChild); 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 += '
'; } + markdownSections += '
'; sectionStack[i].forEach( function( child ) { matchAttributes = slideAttributesSeparatorRegex.exec(child); -- 2.26.2