From 48f83783350e49cce38e2f9dee2b54f3adda69a8 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Mon, 5 Jun 2017 01:20:21 +0800 Subject: Fix speaker note separator regex should only take effect on the line start --- public/js/reveal-markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public') diff --git a/public/js/reveal-markdown.js b/public/js/reveal-markdown.js index eca148d8..94f6fb91 100755 --- a/public/js/reveal-markdown.js +++ b/public/js/reveal-markdown.js @@ -18,7 +18,7 @@ import { md } from './extra' } }(this, function () { var DEFAULT_SLIDE_SEPARATOR = '^\r?\n---\r?\n$' - var DEFAULT_NOTES_SEPARATOR = 'note:' + var DEFAULT_NOTES_SEPARATOR = '^note:' var DEFAULT_ELEMENT_ATTRIBUTES_SEPARATOR = '\\.element\\s*?(.+?)$' var DEFAULT_SLIDE_ATTRIBUTES_SEPARATOR = '\\.slide:\\s*?(\\S.+?)$' -- cgit v1.2.3