Class MarkdownToDocx
- Namespace
- LMKit.Document.Conversion
- Assembly
- LM-Kit.NET.dll
Provides conversion methods from Markdown to DOCX documents.
public static class MarkdownToDocx
- Inheritance
-
MarkdownToDocx
- Inherited Members
Examples
using LMKit.Document.Conversion;
string markdown = "# Meeting Notes\n\n- Action item 1\n- Action item 2";
byte[] docxBytes = MarkdownToDocx.Convert(markdown);
Remarks
This API reuses LM-Kit internal DOCX conversion components to ensure consistent behavior with existing Markdown workflows. The converter uses the existing OpenXML Markdown writer to produce DOCX documents.
Methods
- Convert(string, CancellationToken)
Converts Markdown text to a DOCX document represented as bytes.
- ConvertAsync(string, CancellationToken)
Asynchronously converts Markdown text to a DOCX document represented as bytes.
- ConvertToFile(string, string, CancellationToken)
Converts Markdown text to DOCX and writes it to a file.
- ConvertToFileAsync(string, string, CancellationToken)
Asynchronously converts Markdown text to DOCX and writes it to a file.