mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
fix: not replace <pre> in list (#226)
This commit is contained in:
parent
f6edf04dd6
commit
f397d9184e
@ -141,7 +141,7 @@ class WxRenderer {
|
||||
)}><span><%s/></span>${text}</li>`;
|
||||
|
||||
renderer.list = (text, ordered, start) => {
|
||||
text = text.replace(/<\/*p.*?>/g, "");
|
||||
text = text.replace(/<\/*p .*?>/g, "").replace(/<\/*p>/g, "");
|
||||
let segments = text.split(`<%s/>`);
|
||||
if (!ordered) {
|
||||
text = segments.join("• ");
|
||||
|
@ -178,6 +178,7 @@ const mutations = {
|
||||
display: -webkit-box;
|
||||
padding: 0.5em 1em 1em;
|
||||
overflow-x: auto;
|
||||
text-indent: 0;
|
||||
}
|
||||
</style>
|
||||
`
|
||||
|
Loading…
Reference in New Issue
Block a user