<script setup lang="ts">
import { computed } from "vue";

const props = defineProps<{ content: string }>();
const blocks = computed(() => props.content.split(/\n{2,}/).map((text) => text.trim()).filter(Boolean));
</script>

<template>
  <div class="mentor-answer">
    <p v-for="(block, index) in blocks" :key="index">{{ block }}</p>
  </div>
</template>
