Can I embed the source code in a .vue file into ReadMe? #1671
-
Example// test.vue
<template>
<h1>Hello world</h1>
</template>
<script setup>
const value = ref(0)
</script>
<style>
.red {
color: red;
}
</style> Can I include the source code content of a specific vue file in my markup? For example, :::demo
./test.vue
::: |
Beta Was this translation helpful? Give feedback.
Answered by
ryuhangyeong
Dec 6, 2022
Replies: 1 comment
-
Self Answerhttps://vitepress.vuejs.org/guide/markdown#import-code-snippets |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ryuhangyeong
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Self Answer
https://vitepress.vuejs.org/guide/markdown#import-code-snippets