mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
fix: update wx-renderer.js
修复图片渲染多出上下空行的问题
This commit is contained in:
parent
d1db8a8c0a
commit
1f07dd39c6
@ -112,6 +112,9 @@ const WxRenderer = function (opts) {
|
||||
}
|
||||
}
|
||||
renderer.paragraph = text => {
|
||||
if (text.indexOf('<figure') != -1 && text.indexOf('<img') != -1) {
|
||||
return text;
|
||||
}
|
||||
return text.replace(/ /g, '') === '' ? '' : `<p ${getStyles('p')}>${text}</p>`
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user