diff --git a/src/assets/scripts/renderers/wx-renderer.js b/src/assets/scripts/renderers/wx-renderer.js index 07cb9e0..bf40e92 100644 --- a/src/assets/scripts/renderers/wx-renderer.js +++ b/src/assets/scripts/renderers/wx-renderer.js @@ -136,22 +136,22 @@ class WxRenderer { renderer.codespan = (text, lang) => `${text}`; renderer.listitem = (text) => - `<%s/>${text}`; + )}><%s/>${text}`; renderer.list = (text, ordered, start) => { text = text.replace(/<\/*p.*?>/g, ""); let segments = text.split(`<%s/>`); if (!ordered) { - text = segments.join("•"); - return `

${text}

`; + text = segments.join("• "); + return ``; } text = segments[0]; for (let i = 1; i < segments.length; i++) { - text = text + i + "." + segments[i]; + text = text + i + ". " + segments[i]; } - return `

${text}

`; + return `
    ${text}
`; }; renderer.image = (href, title, text) => { let subText = "";