fix: blockquote fix

This commit is contained in:
JimQing 2020-07-08 23:38:37 +08:00
parent af1c26a8ce
commit c8d87f3858

View File

@ -119,7 +119,7 @@ const WxRenderer = function (opts) {
} }
renderer.blockquote = text => { renderer.blockquote = text => {
text = text.replace(/<p.*?>/, `<p ${getStyles('blockquote_p')}>`) text = text.replace(/<p.*?>/g, `<p ${getStyles('blockquote_p')}>`)
return `<blockquote ${getStyles('blockquote')}>${text}</blockquote>` return `<blockquote ${getStyles('blockquote')}>${text}</blockquote>`
} }
renderer.code = (text, infoString) => { renderer.code = (text, infoString) => {