refactor(chat-markdown): switch markdown renderer to vue3-markdown-it

update wrapper class to w-full and remove outdated scoped styles
This commit is contained in:
DEV_DSW
2026-06-01 11:50:17 +08:00
parent b906058cdc
commit 37c3b135f7

View File

@@ -1,11 +1,12 @@
<template>
<div class="container">
<zero-markdown-div :markdown="text" :aiMode="true"></zero-markdown-div>
<div class="w-full">
<vue3-markdown-it :source="text" :html="true" />
</div>
</template>
<script setup>
import { defineProps } from "vue";
import Vue3MarkdownIt from 'vue3-markdown-it';
defineProps({
text: {
@@ -15,14 +16,4 @@ defineProps({
});
</script>
<style scoped>
.container {
width: 100%;
}
.container ::v-deep image,
.container ::v-deep video,
.container ::v-deep iframe {
width: 100% !important;
}
</style>
<style scoped></style>