hexojs / hexo-renderer-markdown-it

Markdown-it is a Markdown parser, done right. A faster and CommonMark compliant alternative for Hexo.
MIT License
341 stars 60 forks source link

Can't handle code in quote block correctly #136

Closed wonter closed 3 years ago

wonter commented 3 years ago

For this example:

>quote text, quote text, quote text, quote text, quote text, quote text, quote text, quote text, quote text, quote text, 
>
>```
>code in quote
>code in quote
>code in quote
>code in quote
>```
>
>quote text, quote text, quote text, quote text, quote text, quote text, quote text, quote text, quote text, 
>
>

In markdown-it demo, it looks like this:

image

But in my hexo site, it look like this:

image

So is this a renderer bug?

wonter commented 3 years ago

My _config.yml

markdown:
  render:
    html: true
    xhtmlOut: false
    breaks: true
    linkify: false
    typographer: true
    quotes: '“”‘’'
  plugins:
    - markdown-it-abbr
    - markdown-it-emoji
    - markdown-it-kbd
    - markdown-it-sub
    - markdown-it-sup
    - markdown-it-task-checkbox
    - markdown-it-multimd-table
  anchors:
    level: 1
    collisionSuffix: 'v'
    permalink: true
    permalinkClass: header-anchor
    permalinkSymbol: ''