Make sure a pattern doesn't include space.
authorVonC <vonc@laposte.net>
Thu, 10 Oct 2013 09:45:06 +0000 (11:45 +0200)
committerVonC <vonc@laposte.net>
Mon, 4 Nov 2013 15:31:22 +0000 (16:31 +0100)
plugin/markdown/markdown.js

index 537a0c54d1051ca3818c0f766a726a84b931f5d6..23b522edc1731497b6e033603f9193dc6b89c8a5 100755 (executable)
@@ -28,8 +28,8 @@
 
        var DEFAULT_SLIDE_SEPARATOR = '^\n---\n$',
                DEFAULT_NOTES_SEPARATOR = 'note:',
-               DEFAULT_ELEMENT_ATTRIBUTES_SEPARATOR = '{_\s*?([^}]+?)}',
-               DEFAULT_SLIDE_ATTRIBUTES_SEPARATOR = '^.*?<!-- slide-attributes: (.*?)-->';
+               DEFAULT_ELEMENT_ATTRIBUTES_SEPARATOR = '{\\\.\s*?([^}]+?)}',
+               DEFAULT_SLIDE_ATTRIBUTES_SEPARATOR = '^.*?<!--\sslide-attributes:\s(.*?)-->';
 
 
        /**