Save image as base64

This example demonstrates how to embeds images as Base64 strings directly in the Markdown.

AdvancedUsage.Strategy.AsBase64Strategy

using (var converter = new MarkdownConverter("example.pdf"))
{
    var options = new DocumentConverterOptions
    {
        ImageExportStrategy = new ExportImagesAsBase64Strategy()
    };

    converter.Convert("output.md", options);
}

More resources

GitHub examples

You may easily run the code above and see the feature in action in our GitHub examples: