From d1db8a8c0a69157cf3b1ff4c51fda7af979f6fc1 Mon Sep 17 00:00:00 2001 From: Yang Libin Date: Sun, 21 Jun 2020 18:24:18 +0800 Subject: [PATCH] fix: update wx-renderer.js --- src/scripts/renderers/wx-renderer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripts/renderers/wx-renderer.js b/src/scripts/renderers/wx-renderer.js index 58d50ea..f7b239d 100644 --- a/src/scripts/renderers/wx-renderer.js +++ b/src/scripts/renderers/wx-renderer.js @@ -111,7 +111,9 @@ const WxRenderer = function (opts) { return `

${text}

` } } - renderer.paragraph = text => `

${text}

` + renderer.paragraph = text => { + return text.replace(/ /g, '') === '' ? '' : `

${text}

` + } renderer.blockquote = text => { text = text.replace(//, `

`)