import React from 'react'; import { type Options } from 'react-markdown'; export type MarkdownProps = Options & { /** * Markdown content to convert into EDS-based content. */ children: string; /** * CSS class names that can be appended to the component. */ className?: string; }; /** * BETA: This component is still a work in progress and is subject to change. * * Generic Markdown component to wrap convert convent into EDS-compliant represenations. Includes all the base * components, plus tables from GitHub-Flavored Markdown. Other features available by using Remark Plugins. * * Library documentation: * - https://github.com/remarkjs/react-markdown * * Included plugins: * - https://github.com/remarkjs/remark-gfm * * ## Usage * * Render markdown-authored content with EDS components and styling. * * | Type/Use | Description | Example | * |----------|-------------|---------| * | Document | Headings, lists, links, tables, quotes, and images from a markdown source. | Help articles. Release notes. Content from a CMS. | * | Inline code | A backticked snippet in prose renders as a low-emphasis `` chip. | A command or file name mentioned mid-sentence. | * | Code block | A fenced block with a language renders a `CodeBlock`. Indented blocks get the inline code treatment on the whole block. | Multi-line examples. Command output. | * * ### Do's * * * Use `Markdown` when the content is already authored as markdown. * * Use inline code for short tokens readers may need to type or recognize, like `yarn start`. * * ### Don'ts * * * Don't reach for `Markdown` just to render one inline snippet. It works, but do that sparingly. * * Don't use inline code for multi-line or runnable code. Use `CodeBlock` instead. */ export declare const Markdown: { ({ children, className, remarkPlugins, ...other }: MarkdownProps): React.JSX.Element; displayName: string; };