feat: basic parsing of post content

This commit is contained in:
Anthony Fu 2022-11-21 05:21:53 +08:00
parent 38f5d7155f
commit bc3197ba22
6 changed files with 102 additions and 5 deletions

View file

@ -1,15 +1,15 @@
<script setup lang="ts">
import type { Status } from 'masto'
defineProps<{
const { status } = defineProps<{
status: Status
}>()
// TODO: parse and interop content (link, emojis)
</script>
<template>
<div class="status-body" v-html="sanitize(status.content)" />
<div class="status-body">
<CommonRichContent :content="status.content" />
</div>
</template>
<style lang="postcss">