shinkan-jinkendo/frontend/src/components/LegalDocumentBody.jsx
Lars 81b9e8f601
All checks were successful
Deploy Development / deploy (push) Successful in 40s
Test Suite / pytest-backend (push) Successful in 35s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 15s
Test Suite / playwright-tests (push) Successful in 56s
chore: bump version to 0.8.95 and update legal documents features
- Updated app version to 0.8.95 with a new build date of 2026-05-12.
- Enhanced legal documents functionality to support section numbering and Markdown formatting in the output.
- Updated dependencies in package.json to include 'marked' and 'react-markdown'.
- Added new CSS styles for legal document presentation.
- Refactored PDF generation logic to incorporate new metadata and improved document structure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 10:52:06 +02:00

26 lines
700 B
JavaScript

import ReactMarkdown from 'react-markdown'
import remarkBreaks from 'remark-breaks'
/**
* Rechtstext-Absatz aus Markdown (ohne Roht-HTML; Links mit target=_blank).
*/
export default function LegalDocumentBody({ content, muted }) {
if (content == null || content === '') return null
return (
<div className={`legal-doc-body ${muted ? 'legal-doc-body--muted' : ''}`}>
<ReactMarkdown
remarkPlugins={[remarkBreaks]}
components={{
a: ({ href, children }) => (
<a href={href} target="_blank" rel="noopener noreferrer">
{children}
</a>
),
}}
>
{content}
</ReactMarkdown>
</div>
)
}