MarkdownLinkExportMode

Inheritance: java.lang.Object

public class MarkdownLinkExportMode

Specifies how links are exported into Markdown.

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:
 // ![](../aw_inline.001.png)
 saveOptions.setLinkExportMode(MarkdownLinkExportMode.INLINE);
 doc.save(getArtifactsDir() + "MarkdownSaveOptions.LinkExportMode.Inline.md", saveOptions);
 

Fields

FieldDescription
AUTOAutomatically detect export mode for each link.
INLINEExport all links as inline blocks.
REFERENCEExport all links as reference blocks.
length

Methods

MethodDescription
fromName(String markdownLinkExportModeName)
getName(int markdownLinkExportMode)
getValues()
toString(int markdownLinkExportMode)

AUTO

public static int AUTO

Automatically detect export mode for each link.

INLINE

public static int INLINE

Export all links as inline blocks.

REFERENCE

public static int REFERENCE

Export all links as reference blocks.

length

public static int length

fromName(String markdownLinkExportModeName)

public static int fromName(String markdownLinkExportModeName)

Parameters:

ParameterTypeDescription
markdownLinkExportModeNamejava.lang.String

Returns: int

getName(int markdownLinkExportMode)

public static String getName(int markdownLinkExportMode)

Parameters:

ParameterTypeDescription
markdownLinkExportModeint

Returns: java.lang.String

getValues()

public static int[] getValues()

Returns: int[]

toString(int markdownLinkExportMode)

public static String toString(int markdownLinkExportMode)

Parameters:

ParameterTypeDescription
markdownLinkExportModeint

Returns: java.lang.String