From c7eea12c2a9f60c527754f0579849d7052dd81cd Mon Sep 17 00:00:00 2001 From: yanglbme Date: Mon, 25 Jan 2021 09:49:58 +0800 Subject: [PATCH] feat: update wx renderer --- src/assets/scripts/renderers/wx-renderer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/assets/scripts/renderers/wx-renderer.js b/src/assets/scripts/renderers/wx-renderer.js index 1e6d1e0..f6fe2fa 100644 --- a/src/assets/scripts/renderers/wx-renderer.js +++ b/src/assets/scripts/renderers/wx-renderer.js @@ -184,7 +184,7 @@ class WxRenderer { return `
${text}${subText}
`; }; renderer.link = (href, title, text) => { - if (href.indexOf("https://mp.weixin.qq.com") === 0) { + if (href.startsWith("https://mp.weixin.qq.com")) { return `${text}`; @@ -205,7 +205,6 @@ class WxRenderer { `
${header}${body}
`; - // renderer.tablerow = (text) => `${text}`; renderer.tablecell = (text, flags) => `${text}`; renderer.hr = () =>