mirror of
https://github.com/doocs/md.git
synced 2024-11-28 13:36:32 +08:00
fix: update italic style
This commit is contained in:
parent
2801402974
commit
edbefd0dcd
@ -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>`
|
||||||
|
Loading…
Reference in New Issue
Block a user