Table of Contents

Method Convert

Namespace
LMKit.Document.Conversion
Assembly
LM-Kit.NET.dll

Convert(string, MarkdownToHtmlOptions)

Converts Markdown text to HTML.

public static string Convert(string markdown, MarkdownToHtmlOptions options = null)

Parameters

markdown string

The Markdown content to convert.

options MarkdownToHtmlOptions

Optional conversion options to customize the output.

Returns

string

The converted HTML string.

Examples

using LMKit.Document.Conversion;

string markdown = "## Overview\n\nVisit [LM-Kit](https://lm-kit.com).";
string html = MarkdownToHtml.Convert(markdown);

// html contains headings, paragraph tags, and anchor tags

Exceptions

ArgumentNullException

Thrown when markdown is null.

Share