| 123456789101112131415 |
- <template>
- <!-- eslint-disable-next-line vue/no-v-html -- `html` já vem sanitizado por DOMPurify em renderMarkdown() -->
- <div class="prose-content" v-html="html" />
- </template>
- <script setup>
- import { computed } from "vue";
- import { renderMarkdown } from "../utils/markdownRenderer.js";
- const props = defineProps({
- content: { type: String, default: "" }
- });
- const html = computed(() => renderMarkdown(props.content));
- </script>
|