📄 Huge intl feature
Some checks failed
Build and Deploy Next.js Blog to Staging / 🔍 Code Quality Checks (push) Failing after 15s
Build and Deploy Next.js Blog to Staging / 🏗️ Build and Push Docker Image (push) Has been skipped
Build and Deploy Next.js Blog to Staging / 🚀 Deploy to Staging (push) Has been skipped

This commit was merged in pull request #10.
This commit is contained in:
RJ
2025-12-03 00:17:34 +02:00
committed by Rares J
parent 072320ed73
commit 91afe03109
48 changed files with 955 additions and 138 deletions

View File

@@ -6,7 +6,8 @@ import rehypeSanitize from 'rehype-sanitize'
import rehypeRaw from 'rehype-raw'
import { OptimizedImage } from './OptimizedImage'
import { CodeBlock } from './code-block'
import Link from 'next/link'
import { useLocale } from 'next-intl'
import { Link } from '@/i18n/navigation'
interface MarkdownRendererProps {
content: string
@@ -14,6 +15,7 @@ interface MarkdownRendererProps {
}
export default function MarkdownRenderer({ content, className = '' }: MarkdownRendererProps) {
const locale = useLocale()
return (
<div className={`prose prose-invert prose-zinc max-w-none ${className}`}>
<ReactMarkdown