MarkdownLinkExportMode

MarkdownLinkExportMode enumeration

Specifies how links are exported into Markdown.

public enum MarkdownLinkExportMode

Values

NameValueDescription
Auto0Automatically detect export mode for each link.
Inline1Export all links as inline blocks.
Reference2Export all links as reference blocks.

Examples

Shows how to links will be written to the .md file.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.InsertShape(ShapeType.Balloon, 100, 100);

// Image will be written as reference:
// ![ref1]
//
// [ref1]: aw_ref.001.png
MarkdownSaveOptions saveOptions = new MarkdownSaveOptions();
saveOptions.LinkExportMode = MarkdownLinkExportMode.Reference;
doc.Save(ArtifactsDir + "MarkdownSaveOptions.LinkExportMode.Reference.md", saveOptions);

// Image will be written as inline:
// ![](aw_inline.001.png)
saveOptions.LinkExportMode = MarkdownLinkExportMode.Inline;
doc.Save(ArtifactsDir + "MarkdownSaveOptions.LinkExportMode.Inline.md", saveOptions);

See Also