Fix tags, some parts of the markdown hydration, change how icon works

This commit is contained in:
2024-09-07 22:56:03 +02:00
parent d7a8087c6c
commit 0d1332dcd4
30 changed files with 88 additions and 83 deletions

View File

@@ -15,7 +15,7 @@ const { data, status } = await useFetch(`/api/project/${route.params.projectId}/
<template v-if="!!data && data.type == 'Markdown' && !!data.content">
<div class="md:px-24 ps-8 my-1 whitespace-break-spaces">
<ProseH1>{{ data.title }}</ProseH1>
<Markdown v-model="data.content"></Markdown>
<Markdown :content="data.content"></Markdown>
</div>
<CommentSide class="hidden" :comments="data.comments"></CommentSide>
</template>

View File

@@ -23,7 +23,7 @@ Le logo a été créé grace aux icones de [Game Icons](https://game-icons.net).
<div class="publish-renderer">
<div class="markdown-preview-view markdown-rendered node-insert-event hide-title">
<div class="markdown-preview-sizer markdown-preview-section" style="padding-bottom: 0px;">
<Markdown v-model="data" />
<Markdown :content="data" />
</div>
</div>
</div>

View File

@@ -41,7 +41,7 @@ async function submit()
}
else if(status.value === 'success' && login.success)
{
console.log(await navigateTo('/user/profile'));
await navigateTo('/user/profile');
}
}
else

View File

@@ -49,7 +49,7 @@ async function submit()
}
else if(status.value === 'success' && login.success)
{
console.log(await navigateTo('/user/profile'));
await navigateTo('/user/profile');
}
}
else