public class MarkdownLinkExportMode
extends java.lang.Object
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.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);
| Modifier and Type | Field and Description |
|---|---|
static int |
AUTO
Automatically detect export mode for each link.
|
static int |
INLINE
Export all links as inline blocks.
|
static int |
length |
static int |
REFERENCE
Export all links as reference blocks.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
fromName(java.lang.String markdownLinkExportModeName) |
static java.lang.String |
getName(int markdownLinkExportMode) |
static int[] |
getValues() |
static java.lang.String |
toString(int markdownLinkExportMode) |