ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
import { useMemo } from 'react';
import { renderMarkdownToHtml } from '../../lib/ai/markdown';
// Renders assistant text. The renderer escapes all input before injecting its
// own allowlisted tags, so dangerouslySetInnerHTML is safe here.
// sink-safe: renderMarkdownToHtml (lib/ai/markdown.js) — escapes then allowlists.
const Markdown = ({ text }) => {
const html = useMemo(() => renderMarkdownToHtml(text || ''), [text]);
return <div className="sk-ai-markdown" dangerouslySetInnerHTML={{ __html: html }} />;
};
export default Markdown;