Skip to content

Vue template doesn't work in markdown code block. #1812

Closed
@hxsf

Description

@hxsf

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

  • 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

return `<pre v-pre data-lang="${lang}"><code class="lang-${lang}">${text}</code></pre>`;

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions