goobs-frontend
Version:
A comprehensive React-based libary for building modern web applications
24 lines • 1.04 kB
TypeScript
import { default as React } from 'react';
export interface MarkdownProps {
/** Markdown source. Empty / nullish renders nothing. */
children?: string;
/** Maximum content width in px. Defaults to 720. Pass 0 for full-width. */
maxWidth?: number;
/** Text alignment for the rendered block. */
align?: 'left' | 'center' | 'right';
/** Optional className passed through to the wrapper. */
className?: string;
/** Optional data-testid hook for tests / instrumentation. */
'data-testid'?: string;
}
/**
* Render a markdown string as a styled block. Wraps `mdToHtml` output in a
* styled container with sensible defaults for paragraph spacing, link
* color, list indentation, code-block monospace, and image responsiveness.
*
* Safe by construction: `mdToHtml` escapes user input before building tags
* so dangerouslySetInnerHTML cannot inject arbitrary HTML from the source.
*/
export declare const Markdown: React.FC<MarkdownProps>;
export default Markdown;
//# sourceMappingURL=index.d.ts.map