From e01081fddee2a96b9d617911705cfb4123789e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Sat, 16 Sep 2017 18:58:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96marked=E5=AF=B9H1-H6=E7=9A=84?= =?UTF-8?q?=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/lib/marked/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/lib/marked/main.js b/js/lib/marked/main.js index 795554c..e1c17b5 100644 --- a/js/lib/marked/main.js +++ b/js/lib/marked/main.js @@ -865,6 +865,7 @@ Renderer.prototype.html = function(html) { }; Renderer.prototype.heading = function(text, level, raw) { + raw = text.replace(/<[^>]+>|<\/[^>]+>/g, '') return '