<script lang="ts">
  import type { TodoDetailPage } from './+page';
  import { markdownToHtml } from '$lib/utils/markdown';

  export let data: TodoDetailPage;
</script>

<h1>{data.todo.title}</h1>
<div>
  {@html markdownToHtml(data.todo.description)}
</div>
