diff options
author | VonC <vonc@laposte.net> | 2013-11-30 22:29:04 +0100 |
---|---|---|
committer | VonC <vonc@laposte.net> | 2013-11-30 23:12:40 +0100 |
commit | f2097417daca80b2caaed2661ee646e861d789c8 (patch) | |
tree | 2584b688a60938677362ccf8b00d79c75c591080 /plugin | |
parent | 13da34cc6bf3b75cec3d4c2fd4f96b3f686fd8a9 (diff) | |
download | fosdem-2018-presentation-f2097417daca80b2caaed2661ee646e861d789c8.tar fosdem-2018-presentation-f2097417daca80b2caaed2661ee646e861d789c8.tar.gz |
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.
Diffstat (limited to 'plugin')
-rwxr-xr-x | plugin/markdown/markdown.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js index 6e12627..19aea28 100755 --- a/plugin/markdown/markdown.js +++ b/plugin/markdown/markdown.js @@ -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:\\\s(.*?)$'; + DEFAULT_ELEMENT_ATTRIBUTES_SEPARATOR = '\\\.element\\\s*?(.+?)$', + DEFAULT_SLIDE_ATTRIBUTES_SEPARATOR = '\\\.slide:\\\s*?(\\\S.+?)$'; /** |