mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-18 16:45:11 +00:00
13 lines
311 B
TypeScript
13 lines
311 B
TypeScript
import clsx from 'classnames';
|
|
|
|
export function Markdown(props: { source: string; className?: string }) {
|
|
const { source, className } = props;
|
|
|
|
return (
|
|
<div
|
|
className={clsx('openapi-markdown', className)}
|
|
dangerouslySetInnerHTML={{ __html: source }}
|
|
/>
|
|
);
|
|
}
|