浏览代码

self-execute data-markdown

Hakim El Hattab 12 年之前
父节点
当前提交
ff567372c0
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      lib/js/data-markdown.js

+ 3 - 3
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 @@
 
   });
 
-}());
+})();