docsify icon indicating copy to clipboard operation
docsify copied to clipboard

Single backslash `\` not escape text as excepted

Open scruel opened this issue 3 years ago • 3 comments

Bug Report

Steps to reproduce

Write:

\``CODE`

`\`CODE`

`CODE\``

`CODE`\`

\``CODE`\`

\``CODE``\

\````
```

<!-- COMMENT -->

What is current behaviour

Not rendered correctly image

What is the expected behaviour

comment should not be rendered as comment block

Other relevant information

  • [x] Bug does still occur when all/other plugins are disabled?

  • Your OS: Windows

  • Node.js version: 16.17.0

  • npm/yarn version: 8.19.2

  • Browser version: latest

  • Docsify version: latest(from cdn)

  • Docsify plugins: mathjax

Please create a reproducible sandbox

Edit code

scruel avatar Sep 16 '22 09:09 scruel

This repo might have leaning toothpick syndrome now QAQ

scruel avatar Sep 21 '22 02:09 scruel

I paste those content below, it seem the general md render result tho.

``CODE`

\CODE`

`CODE``

CODE`

``CODE\

``CODE``\

````


<!-- COMMENT -->

Koooooo-7 avatar Jan 05 '23 08:01 Koooooo-7

I guess the issue place is the ```` above to the comment content, and the parser treats it is an half quote code content.

Koooooo-7 avatar Jan 05 '23 08:01 Koooooo-7