Skip to main content

markdownifyToJSX

Parses a markdown string to JSX.

Signature

markdownifyToJSX(
md: string,
context?: Context,
lineBreaks?: boolean,
features?: MarkdownFeatures
): JSX.Element

Parameters

NameTypeOptionalDescription
mdstringNoSpecifies the markdown string to parse.
contextContextYesReference to the context.
lineBreaksstringYesSpecifies if line breaks are supported (default is true).
featuresMarkdownFeaturesYesSpecifies the markdown features to parse.

Return value

Returns a JSX.Element with the parsed markdown.