<script setup lang="ts">
import { toDisplayHtml } from '~/utils/rich-text'

const props = defineProps<{ content: string }>()
const html = computed(() => toDisplayHtml(props.content))
</script>

<template>
  <div class="rich-text-content" v-html="html" />
</template>
