diff --git a/src/lib/markdown.ts b/src/lib/markdown.ts index 4570037..dca5e7c 100644 --- a/src/lib/markdown.ts +++ b/src/lib/markdown.ts @@ -334,9 +334,7 @@ export function convertToWechat(markdown: string, options: RendererOptions = def ...linkStyle } const styleStr = cssPropertiesToString(style) - const tokens = marked.Lexer.lexInline(text) - const content = marked.Parser.parseInline(tokens, { renderer }) - return `${content}` + return `${text}` } // 重写 image 方法 @@ -409,8 +407,6 @@ export function convertToWechat(markdown: string, options: RendererOptions = def return `${content}` } - - // 添加删除线支持 renderer.del = function({ text }: Tokens.Del) { const delStyle = (mergedOptions.inline?.del || {}) as StyleOptions