// Prepare a path to a source Markdown file
string sourcePath = Path.Combine(DataDir, "document.md");

// Prepare a path to save the converted file
string savePath = Path.Combine(OutputDir, "output.bmp");

// Convert Markdown to HTML
using var document = Converter.ConvertMarkdown(sourcePath);

// Convert HTML document to BMP image file format
Converter.ConvertHTML(document, new ImageSaveOptions(ImageFormat.Bmp), savePath);