mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-03-28 19:49:25 +01:00
Add custom Markdoc renderers for images, links, paragraphs, code blocks, inline code, and horizontal rules. Restyle existing heading, table, and list components to match the desert tactical color palette. Add 8 screenshots to docs with polished image presentation (rounded corners, shadow, captions). Constrain content width for readability. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
21 lines
511 B
TypeScript
21 lines
511 B
TypeScript
export function List({
|
|
ordered = false,
|
|
start,
|
|
children,
|
|
}: {
|
|
ordered?: boolean
|
|
start?: number
|
|
children: React.ReactNode
|
|
}) {
|
|
const className = ordered
|
|
? 'list-decimal list-outside ml-6 mb-5 space-y-2 marker:text-desert-orange marker:font-semibold'
|
|
: 'list-disc list-outside ml-6 mb-5 space-y-2 marker:text-desert-orange'
|
|
const Tag = ordered ? 'ol' : 'ul'
|
|
return (
|
|
// @ts-ignore
|
|
<Tag start={ordered ? start : undefined} className={className}>
|
|
{children}
|
|
</Tag>
|
|
)
|
|
}
|