Skip to content

Commit f209741

Browse files
committed
Simpler default syntax for markdown attributes.
- on slides: .slide x=y - on elements: .element x=y Those are detected in html comment, in order to not be visible if a markdown is edited in an html editor.
1 parent 13da34c commit f209741

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/markdown/markdown.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828

2929
var DEFAULT_SLIDE_SEPARATOR = '^\n---\n$',
3030
DEFAULT_NOTES_SEPARATOR = 'note:',
31-
DEFAULT_ELEMENT_ATTRIBUTES_SEPARATOR = '{\\\.\s*?([^}]+?)}',
32-
DEFAULT_SLIDE_ATTRIBUTES_SEPARATOR = 'slide-attributes:\\\s(.*?)$';
31+
DEFAULT_ELEMENT_ATTRIBUTES_SEPARATOR = '\\\.element\\\s*?(.+?)$',
32+
DEFAULT_SLIDE_ATTRIBUTES_SEPARATOR = '\\\.slide:\\\s*?(\\\S.+?)$';
3333

3434

3535
/**

0 commit comments

Comments
 (0)