Table of Contents

Method MarkdownToDocxFileAsync

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

MarkdownToDocxFileAsync(string, string, CancellationToken)

Asynchronously converts Markdown text to DOCX and writes it to a file.

public static Task MarkdownToDocxFileAsync(string markdown, string outputPath, CancellationToken cancellation = default)

Parameters

markdown string
outputPath string
cancellation CancellationToken

Returns

Task

Examples

using LMKit.Document.Conversion;

string markdown = "# Notes\n\nSaved with async file conversion.";
await MarkdownDocxConverter.MarkdownToDocxFileAsync(markdown, "output/notes.docx");