Table of Contents

Method MarkdownToDocxFile

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

MarkdownToDocxFile(string, string, CancellationToken)

Converts Markdown text to DOCX and writes it to a file.

public static void MarkdownToDocxFile(string markdown, string outputPath, CancellationToken cancellation = default)

Parameters

markdown string

The Markdown content to convert.

outputPath string

The destination DOCX file path.

cancellation CancellationToken

A cancellation token used to cancel the conversion operation.

Examples

using LMKit.Document.Conversion;

string markdown = "# Project Plan\n\n1. Design\n2. Build\n3. Test";
MarkdownDocxConverter.MarkdownToDocxFile(markdown, "output/project-plan.docx");