MarkdownSaveOptions.ImagesFolderAlias
MarkdownSaveOptions.ImagesFolderAlias property
Specifies the name of the folder used to construct image URIs written into a document. Default is an empty string.
public string ImagesFolderAlias { get; set; }
Remarks
When you save a document in Markdown format, Wordize needs to save all images embedded in the document as standalone files. ImagesFolder
allows you to specify where the images will be saved and ImagesFolderAlias
allows to specify how the image URIs will be constructed.
If ImagesFolderAlias
is not an empty string, then the image URI written to Markdown will be ImagesFolderAlias + <image file name>.
If ImagesFolderAlias
is an empty string, then the image URI written to Markdown will be ImagesFolder + <image file name>.
If ImagesFolderAlias
is set to ‘.’ (dot), then the image file name will be written to Markdown without path regardless of other options.
Examples
Shows how to configure folder where images are stored while exporting document to Markdown.
MarkdownSaveOptions mdSaveOptions = new MarkdownSaveOptions();
mdSaveOptions.ImagesFolder = ArtifactsDir + "mdimages";
mdSaveOptions.ImagesFolderAlias = "mdimages";
Converter.Create()
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "MarkdownSaveOptions.ImagesFolder.md", mdSaveOptions)
.Execute();
See Also
- class MarkdownSaveOptions
- namespace Wordize.Saving
- assembly Wordize