java.lang.Object
com.aspose.words.MarkdownLinkExportMode
public class MarkdownLinkExportMode
- extends java.lang.Object
Utility class containing constants.
Specifies how links are exported into Markdown.
Example:
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.0, 100.0);
// Image will be written as reference:
// ![ref1]
//
// [ref1]: aw_ref.001.png
MarkdownSaveOptions saveOptions = new MarkdownSaveOptions();
saveOptions.setLinkExportMode(MarkdownLinkExportMode.REFERENCE);
doc.save(getArtifactsDir() + "MarkdownSaveOptions.LinkExportMode.Reference.md", saveOptions);
// Image will be written as inline:
// 
saveOptions.setLinkExportMode(MarkdownLinkExportMode.INLINE);
doc.save(getArtifactsDir() + "MarkdownSaveOptions.LinkExportMode.Inline.md", saveOptions);
|
Field Summary |
static final int | AUTO = 0 | |
|
Automatically detect export mode for each link.
|
static final int | INLINE = 1 | |
|
Export all links as inline blocks.
|
static final int | REFERENCE = 2 | |
|
Export all links as reference blocks.
|
AUTO = 0 | |
public static final int AUTO |
-
Automatically detect export mode for each link.
INLINE = 1 | |
public static final int INLINE |
-
Export all links as inline blocks.
REFERENCE = 2 | |
public static final int REFERENCE |
-
Export all links as reference blocks.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.