mirror of
https://github.com/doocs/md.git
synced 2024-11-28 13:36:32 +08:00
fix: update wx-renderer.js
This commit is contained in:
parent
0839325ebc
commit
d1db8a8c0a
@ -111,7 +111,9 @@ const WxRenderer = function (opts) {
|
||||
return `<h4 ${getStyles('h4')}>${text}</h4>`
|
||||
}
|
||||
}
|
||||
renderer.paragraph = text => `<p ${getStyles('p')}>${text}</p>`
|
||||
renderer.paragraph = text => {
|
||||
return text.replace(/ /g, '') === '' ? '' : `<p ${getStyles('p')}>${text}</p>`
|
||||
}
|
||||
|
||||
renderer.blockquote = text => {
|
||||
text = text.replace(/<p.*?>/, `<p ${getStyles('blockquote_p')}>`)
|
||||
|
Loading…
Reference in New Issue
Block a user