1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-09 16:17:28 +02:00

Replace the ShowDown Markdown engine with marked

This commit is contained in:
Amit Kotlovski
2013-05-01 23:10:31 +03:00
parent 247771e129
commit 381da383d9
8 changed files with 1138 additions and 73 deletions

View File

@@ -2,8 +2,8 @@
// Modified by Hakim to handle Markdown indented with tabs
(function(){
if( typeof Showdown === 'undefined' ) {
throw 'The reveal.js Markdown plugin requires Showdown to be loaded';
if( typeof marked === 'undefined' ) {
throw 'The reveal.js Markdown plugin requires marked to be loaded';
}
var stripLeadingWhitespace = function(section) {
@@ -175,7 +175,7 @@
var markdown = stripLeadingWhitespace(section);
section.innerHTML = (new Showdown.converter()).makeHtml(markdown);
section.innerHTML = marked(markdown);
if( notes ) {
section.appendChild( notes );