From: ynonp Date: Fri, 1 Mar 2013 16:47:26 +0000 (+0200) Subject: Update markdown.js X-Git-Tag: 2.3.0~25^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=34afc564cd58142656773eb04626a001c9527024;p=reveal.js.git Update markdown.js Allow HTML tags in external markdown files --- diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js index 39e1168..b6b5a9b 100644 --- a/plugin/markdown/markdown.js +++ b/plugin/markdown/markdown.js @@ -26,7 +26,11 @@ return text; }; - + + var twrap = function(el) { + return ''; + }; + var slidifyMarkdown = function(markdown, separator, vertical) { separator = separator || '^\n---\n$'; @@ -74,8 +78,8 @@ // flatten the hierarchical stack, and insert
tags for( var k = 0, klen = sectionStack.length; k < klen; k++ ) { markdownSections += typeof sectionStack[k] === 'string' - ? '
' + sectionStack[k] + '
' - : '
' + sectionStack[k].join('
') + '
'; + ? '
' + twrap( sectionStack[k] ) + '
' + : '
' + sectionStack[k].map(twrap).join('
') + '
'; } return markdownSections;