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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user