修复引用嵌套的问题
This commit is contained in:
parent
a3b8fa295c
commit
d2f05c7b71
@ -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 `<blockquote${styleStr ? ` style="${styleStr}"` : ''}>${text}</blockquote>`
|
||||
const tokens = marked.Lexer.lexInline(text)
|
||||
const content = marked.Parser.parseInline(tokens, { renderer })
|
||||
|
||||
return `<blockquote${styleStr ? ` style="${styleStr}"` : ''}>${content}</blockquote>`
|
||||
}
|
||||
|
||||
renderer.code = function({ text, lang }: Tokens.Code) {
|
||||
|
Loading…
Reference in New Issue
Block a user