From 866c10d9428c0a23b92ccab441c113a33d463962 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Wed, 19 Oct 2016 22:09:15 +0800 Subject: Update to make pretty use same method as slide to unescape markdown content --- public/js/pretty.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'public') diff --git a/public/js/pretty.js b/public/js/pretty.js index c5211202..59403586 100644 --- a/public/js/pretty.js +++ b/public/js/pretty.js @@ -1,3 +1,6 @@ +/* other vendors plugin */ +var S = require('string'); + var extra = require('./extra'); var md = extra.md; var finishView = extra.finishView; @@ -12,7 +15,7 @@ var parseMeta = extra.parseMeta; var preventXSS = require('./render').preventXSS; var markdown = $("#doc.markdown-body"); -var text = $('