From: Jakub Holy Date: Sun, 24 Mar 2013 22:30:50 +0000 (+0100) Subject: More verbose error slide (HTTP necessary) X-Git-Tag: 2.4.0~59^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f6487dc312539bb011434c7a8f9a80bc5b238a7c;p=reveal.js.git More verbose error slide (HTTP necessary) --- diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js index 11a6fc2..3e31203 100644 --- a/plugin/markdown/markdown.js +++ b/plugin/markdown/markdown.js @@ -26,11 +26,11 @@ return text; }; - + var twrap = function(el) { return ''; }; - + var slidifyMarkdown = function(markdown, separator, vertical) { separator = separator || '^\n---\n$'; @@ -105,7 +105,8 @@ section.outerHTML = slidifyMarkdown( xhr.responseText, section.getAttribute('data-separator'), section.getAttribute('data-vertical') ); } else { section.outerHTML = '
ERROR: The attempt to fetch ' + url + ' failed with the HTTP status ' + xhr.status + - '. Check your browser\'s JavaScript console for more details.
'; + '. Check your browser\'s JavaScript console for more details.' + + '

Remember that you need to serve the presentation HTML from a HTTP server and the Markdown file must be there too.

'; } } };