Skip to content

markdownToHtml

Convert inline markdown to HTML for use in component props with set:html

Import:

import { markdownToHtml } from '@mnaoumov/typescript-dev-toolkit/docs-site/api-doc-link-rendering';

Signature:

function markdownToHtml(text: string): string

Parameters:

Parameter Type Description
text string The text.

Returns: string — The HTML.