Deploy with Docker Compose / deploy (push) Successful in 4m44s
- Fix auth bypass in UpdatePost/DeletePost (missing return after auth check) - Remove Spotify access token from callback response - Replace internal error messages with generic responses in all handlers - Harden GraphQL: complexity limit, disable playground/introspection in prod - Add security headers (X-Frame-Options, HSTS, etc.) to nginx - Disable Hasura console/dev mode in production - Add DOMPurify sanitization to Markdown component - Fix cookie removal to use correct domain/path from auth config - Fix nil dereference in rowing handler when Claude API errors - Fix wildcard CORS on stamp endpoint - Pin nginx and certbot Docker image versions Co-Authored-By: Claude Opus 4.6 <[email protected]>
27 lines
511 B
Vue
27 lines
511 B
Vue
<script setup>
|
|
import MarkdownIt from "markdown-it";
|
|
import { katex } from "@mdit/plugin-katex";
|
|
import DOMPurify from "dompurify";
|
|
|
|
const mdIt = MarkdownIt().use(katex);
|
|
|
|
const props = defineProps({
|
|
source: String,
|
|
});
|
|
|
|
function renderMarkdown(source) {
|
|
return DOMPurify.sanitize(mdIt.render(source));
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
v-html="renderMarkdown(props.source)"
|
|
class="flex flex-col items-center"
|
|
></div>
|
|
</template>
|
|
|
|
<style>
|
|
@import "katex/dist/katex.min.css";
|
|
</style>
|