docsify icon indicating copy to clipboard operation
docsify copied to clipboard

Vue template doesn't work in markdown code block.

Open hxsf opened this issue 3 years ago • 0 comments

Bug Report

Steps to reproduce

<input v-model="msg" />
```
{{ msg }}
```
<script>Vue.createApp({data(){return {msg: "Hello"}}})</script>

What is current behaviour

{{ msg }}

What is the expected behaviour

Hello

Other relevant information

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

  • Your OS:

  • Node.js version:

  • npm/yarn version:

  • Browser version:

  • Docsify version:

  • Docsify plugins:

Please create a reproducible sandbox

Done. Edit busy-austin-pk53xl

Mention the docsify version in which this bug was not present (if any)

Cause by this line

https://github.com/docsifyjs/docsify/blob/8cbc7c8073e134df37600d097e58071909059fbd/src/core/render/compiler/code.js#L14

hxsf avatar Jun 01 '22 07:06 hxsf