aboutsummaryrefslogtreecommitdiff
path: root/plugin/markdown
diff options
context:
space:
mode:
authorVonC <vonc@laposte.net>2013-11-30 22:29:04 +0100
committerVonC <vonc@laposte.net>2013-11-30 23:12:40 +0100
commitf2097417daca80b2caaed2661ee646e861d789c8 (patch)
tree2584b688a60938677362ccf8b00d79c75c591080 /plugin/markdown
parent13da34cc6bf3b75cec3d4c2fd4f96b3f686fd8a9 (diff)
downloadfreenode-live-2017-presentation-f2097417daca80b2caaed2661ee646e861d789c8.tar
freenode-live-2017-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/markdown')
-rwxr-xr-xplugin/markdown/markdown.js4
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.+?)$';
/**