Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
hxsf opened this issue Jun 1, 2022 · 0 comments · Fixed by #2430
Closed
1 task done

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

hxsf opened this issue Jun 1, 2022 · 0 comments · Fixed by #2430
Assignees
Milestone

Comments

@hxsf
Copy link

hxsf commented Jun 1, 2022

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>`;

@jhildenbiddle jhildenbiddle added this to the 5.x milestone May 17, 2024
@jhildenbiddle jhildenbiddle self-assigned this May 17, 2024
jhildenbiddle added a commit that referenced this issue May 19, 2024
* Update Vue 3 depenency and docs. Remove Vue 2.

* Fix minor lint issue

* Remove Vue 2 reference

* Swap button positions

* Update Vue2 links

* Send HTML with _blank to avoid quirks mode

* Support Vue text interpolation in code blocks

Fix #1812
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants