projects
/
reveal.js.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12c9977
)
self-execute data-markdown
author
Hakim El Hattab
<hakim.elhattab@gmail.com>
Tue, 31 Jul 2012 15:44:37 +0000
(12:44 -0300)
committer
Hakim El Hattab
<hakim.elhattab@gmail.com>
Tue, 31 Jul 2012 15:44:37 +0000
(12:44 -0300)
lib/js/data-markdown.js
patch
|
blob
|
history
diff --git
a/lib/js/data-markdown.js
b/lib/js/data-markdown.js
index d1b27c4edf948c1393455d1801fe644decaab3ba..3c5389b0216cd2de961a5dcf0c8f86590c121ddd 100644
(file)
--- a/
lib/js/data-markdown.js
+++ b/
lib/js/data-markdown.js
@@
-1,8
+1,8
@@
// From https://gist.github.com/1343518, modified to not load showdown
-(function
boom
(){
+(function(){
[].forEach.call( document.querySelectorAll('[data-markdown]'), function fn(elem){
-
+
// strip leading whitespace so it isn't evaluated as code
var text = elem.innerHTML.replace(/\n\s*\n/g,'\n'),
// set indentation level so your markdown can be indented within your HTML
@@
-16,4
+16,4
@@
});
-}
()
);
\ No newline at end of file
+}
)(
);
\ No newline at end of file