diff --git a/src/lib/markdown.ts b/src/lib/markdown.ts index cb73781..2d9e20b 100644 --- a/src/lib/markdown.ts +++ b/src/lib/markdown.ts @@ -117,7 +117,10 @@ export function convertToWechat(markdown: string, options: RendererOptions = def renderer.blockquote = function({ text }: Tokens.Blockquote) { const style = mergedOptions.block?.blockquote const styleStr = cssPropertiesToString(style) - return `
${text}` + const tokens = marked.Lexer.lexInline(text) + const content = marked.Parser.parseInline(tokens, { renderer }) + + return `
${content}` } renderer.code = function({ text, lang }: Tokens.Code) {