Class DocxToMarkdown
- Namespace
- LMKit.Document.Conversion
- Assembly
- LM-Kit.NET.dll
Provides conversion methods from DOCX documents to Markdown.
public static class DocxToMarkdown
- Inheritance
-
DocxToMarkdown
- Inherited Members
Examples
using LMKit.Document.Conversion;
byte[] docxBytes = File.ReadAllBytes("report.docx");
string markdown = DocxToMarkdown.Convert(docxBytes);
Remarks
This API reuses LM-Kit internal DOCX conversion components to ensure consistent behavior with existing DOCX workflows. The converter uses the existing DOCX Markdown extractor to produce Markdown from DOCX files.
Methods
- Convert(byte[], DocxToMarkdownOptions, CancellationToken)
Converts a DOCX document in memory to Markdown text.
- Convert(string, DocxToMarkdownOptions, CancellationToken)
Converts a DOCX file to Markdown text.
- ConvertAsync(byte[], DocxToMarkdownOptions, CancellationToken)
Asynchronously converts a DOCX document in memory to Markdown text.
- ConvertAsync(string, DocxToMarkdownOptions, CancellationToken)
Asynchronously converts a DOCX file to Markdown text.