From 98ec64948a4246b0bd557f067d4bd2d6ab9b8f03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Fri, 8 Sep 2017 22:45:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0marked=E7=BB=84=E4=BB=B6;?= =?UTF-8?q?=E8=BF=81=E7=A7=BBmd5=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/lib/marked/main.js | 2 +- js/lib/md5/Readme.md | 2 +- js/lib/md5/{md5.js => main.js} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename js/lib/md5/{md5.js => main.js} (100%) diff --git a/js/lib/marked/main.js b/js/lib/marked/main.js index e2bda61..795554c 100644 --- a/js/lib/marked/main.js +++ b/js/lib/marked/main.js @@ -1128,7 +1128,6 @@ Parser.prototype.tok = function() { return this.renderer.mark(body, this.token.mark); } case 'task': { - log(this.token) return this.renderer.task(this.token.text, this.token.mark) } case 'list_start': { @@ -1333,6 +1332,7 @@ marked.setOptions = function(opt) { merge(marked.defaults, opt); return marked; }; +if (window.yua) {yua.ui.marked = '1.0.0'} marked.defaults = { gfm: true, diff --git a/js/lib/md5/Readme.md b/js/lib/md5/Readme.md index 092741e..65226be 100644 --- a/js/lib/md5/Readme.md +++ b/js/lib/md5/Readme.md @@ -9,7 +9,7 @@ ### demo: ```javascript -require(['./md5'], function(SparkMD5){ +require(['./md5/main'], function(SparkMD5){ var Spark = new SparkMD5() var md5 = function(cont){ return Spark.sign.call(Spark, cont) diff --git a/js/lib/md5/md5.js b/js/lib/md5/main.js similarity index 100% rename from js/lib/md5/md5.js rename to js/lib/md5/main.js