fix: update italic style

This commit is contained in:
Yang Libin 2020-06-21 11:00:49 +08:00 committed by GitHub
parent edbefd0dcd
commit 9637d458ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,7 +181,7 @@ const WxRenderer = function (opts) {
}
}
renderer.strong = text => `<strong ${getStyles('strong')}>${text}</strong>`
renderer.em = text => `<span ${getStyles('p', ';font-style: italic;')}>${text}</span>`
renderer.em = text => `<span style="font-style: italic;">${text}</span>`
renderer.table = (header, body) => `<section style="padding:0 8px;"><table class="preview-table"><thead ${getStyles('thead')}>${header}</thead><tbody>${body}</tbody></table></section>`
// renderer.tablerow = (text) => `<tr style="">${text}</tr>`;
renderer.tablecell = (text, flags) => `<td ${getStyles('td')}>${text}</td>`