fix: update italic style

This commit is contained in:
Yang Libin 2020-06-21 10:51:06 +08:00 committed by GitHub
parent 2801402974
commit edbefd0dcd
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.strong = text => `<strong ${getStyles('strong')}>${text}</strong>`
renderer.em = text => `<p ${getStyles('p', ';font-style: italic;')}>${text}</p>` renderer.em = text => `<span ${getStyles('p', ';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.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.tablerow = (text) => `<tr style="">${text}</tr>`;
renderer.tablecell = (text, flags) => `<td ${getStyles('td')}>${text}</td>` renderer.tablecell = (text, flags) => `<td ${getStyles('td')}>${text}</td>`