markdown page code
This commit is contained in:
12
app.vue
Normal file
12
app.vue
Normal file
@@ -0,0 +1,12 @@
|
||||
<template>
|
||||
<div>
|
||||
<ContentRenderer :value="doc" /> <!-- Render the markdown content -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
// Fetch the 'markdown.md' content file asynchronously
|
||||
const { data: doc } = await useAsyncData('markdownDoc', () =>
|
||||
queryContent('markdown').findOne()
|
||||
)
|
||||
</script>
|
||||
Reference in New Issue
Block a user