markdown page code

This commit is contained in:
hatemhellal
2024-11-30 16:42:35 +01:00
commit 357b19312c
11 changed files with 11275 additions and 0 deletions

12
app.vue Normal file
View 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>