<template>
  <div class="markdown-body">
    <MarkdownRender :content="content" />
  </div>
</template>

<script setup lang="ts">
import MarkdownRender from '@/components/MarkdownRender.vue';
defineProps<{
  content: string
}>();
</script>

<style scoped lang="scss">
.markdown-body {
  font-family: 'Georgia', serif;
  line-height: 1.6;

  h1 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  p {
    margin: 10px 0;
  }

  img {
    max-width: 100%;
    margin: 10px 0;
    border-radius: 6px;
  }
}
</style>
