From 7baa8ec1fe2cd0d09ee6c034e6ebd7a07ee317c4 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Mon, 16 Mar 2015 08:54:58 +0100 Subject: [PATCH] updated md slide separator regex #929 see https://github.com/hakimel/reveal.js/issues/929#issuecomment-80738837 --- plugin/markdown/markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js index 4847c7ad..ca692e30 100755 --- a/plugin/markdown/markdown.js +++ b/plugin/markdown/markdown.js @@ -26,7 +26,7 @@ }); } - var DEFAULT_SLIDE_SEPARATOR = '^\n---\n$', + var DEFAULT_SLIDE_SEPARATOR = '^\r?\n---\r?\n$', DEFAULT_NOTES_SEPARATOR = 'note:', DEFAULT_ELEMENT_ATTRIBUTES_SEPARATOR = '\\\.element\\\s*?(.+?)$', DEFAULT_SLIDE_ATTRIBUTES_SEPARATOR = '\\\.slide:\\\s*?(\\\S.+?)$';