2024-12-02 16:07:52 +01:00
|
|
|
<template>
|
2024-12-02 22:21:04 +01:00
|
|
|
<div :class="['prose prose-sm block relative dark:prose-invert duration-200 !max-w-full break-words prose-a:no-underline prose-a:hover:underline', $style.content]" v-html="content" v-render-emojis="emojis">
|
2024-12-02 16:07:52 +01:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2024-12-02 22:21:04 +01:00
|
|
|
import type { Emoji } from "@versia/client/types";
|
|
|
|
|
|
2024-12-02 16:07:52 +01:00
|
|
|
const { content } = defineProps<{
|
|
|
|
|
content: string;
|
2024-12-02 22:21:04 +01:00
|
|
|
emojis: Emoji[];
|
2024-12-02 16:07:52 +01:00
|
|
|
}>();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style module>
|
2024-12-25 20:46:14 +01:00
|
|
|
@import url("~/styles/content.css");
|
|
|
|
|
</style>
|