-
Notifications
You must be signed in to change notification settings - Fork 10
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
posts/start-vitepress/ #258
Comments
is there is any way to embed vue code into .md file like this instead of importing component and use it. Code is bellow
|
@prashantnirgun You try the following. # Training
## what is count ? {{ count }}
<script setup>
import { ref } from 'vue';
const count = ref(0)
</script>
<button v-on:click="count +=1">inc</button> |
No let me re-phase it I want can we use markdown and templates both in test.md file. I checked it works without template that is fine. |
@prashantnirgun I'm not sure what you want to do. |
Yes is it possible ? |
@prashantnirgun You can do this. # Training
## what is count ? {{ count}}
<component is="template">
<div>{{count}}</div>
</component>
<script setup>
import { ref } from 'vue';
const count = ref(10);
</script>
|
Actually, this is apart from code, but can I see scroll bar? |
Create a document with VitePress | miyauci.me
Introduce the basic usage of VitePress,multilingual support, homepage layout, meta tag injection, custom CSS, custom component and so on.
https://miyauchi.dev/posts/start-vitepress/?utterances=0cda0023ad4a6e8d13386ae6T6bTd4r%2BFA97wAONCPSYj6nGhZ%2BGAi4is5QF6nghTFWFh07vd6wkTqoMdHVLLYU9CSQ6kW84reyDjXJf1fpWQR%2FMuGkJCWsB6qcPIdg6C6vskQkKHhZW0eJwV18%3D
The text was updated successfully, but these errors were encountered: