markdown support

This commit is contained in:
2026-01-09 09:36:52 +00:00
parent ea590dd331
commit 9098415e69
4 changed files with 629 additions and 352 deletions

View File

@@ -1,4 +1,6 @@
<script setup>
import Markdown from "@/components/quick/Markdown.vue";
import { ref, onMounted } from "vue";
import axios from "axios";
import { useAuthStore } from "@/stores/auth";
@@ -68,7 +70,7 @@ onMounted(() => {
<template>
<div v-if="fetched" class="flex-col pad scroll-y left-content">
<h2>{{ post.title }}</h2>
<div class="fill wrap">{{ post.content }}</div>
<Markdown class="fill wrap" :source="post.content" />
<p>by: {{ post.author.username }}</p>
<small
>Created at: {{ new Date(post.createdAt).toLocaleString() }}</small