MarkdownExportAsHtml

Inheritance: java.lang.Object

public class MarkdownExportAsHtml

Allows to specify the elements to be exported to Markdown as raw HTML.

Examples:

Shows how to export a table to Markdown as raw HTML.


 Document doc = new Document();
 DocumentBuilder builder = new DocumentBuilder(doc);

 builder.writeln("Sample table:");

 // Create table.
 builder.insertCell();
 builder.getParagraphFormat().setAlignment(ParagraphAlignment.RIGHT);
 builder.write("Cell1");
 builder.insertCell();
 builder.getParagraphFormat().setAlignment(ParagraphAlignment.CENTER);
 builder.write("Cell2");

 MarkdownSaveOptions saveOptions = new MarkdownSaveOptions();
 saveOptions.setExportAsHtml(MarkdownExportAsHtml.TABLES);

 doc.save(getArtifactsDir() + "MarkdownSaveOptions.ExportTableAsHtml.md", saveOptions);
 

Fields

FieldDescription
NONEExport all elements using Markdown syntax without any raw HTML.
TABLESExport tables as raw HTML.
length

Methods

MethodDescription
fromName(String markdownExportAsHtmlName)
fromNames(Set markdownExportAsHtmlNames)
getName(int markdownExportAsHtml)
getNames(int markdownExportAsHtml)
getValues()
toString(int markdownExportAsHtml)
toStringSet(int attr)

NONE

public static int NONE

Export all elements using Markdown syntax without any raw HTML.

TABLES

public static int TABLES

Export tables as raw HTML.

length

public static int length

fromName(String markdownExportAsHtmlName)

public static int fromName(String markdownExportAsHtmlName)

Parameters:

ParameterTypeDescription
markdownExportAsHtmlNamejava.lang.String

Returns: int

fromNames(Set markdownExportAsHtmlNames)

public static int fromNames(Set markdownExportAsHtmlNames)

Parameters:

ParameterTypeDescription
markdownExportAsHtmlNamesjava.util.Set

Returns: int

getName(int markdownExportAsHtml)

public static String getName(int markdownExportAsHtml)

Parameters:

ParameterTypeDescription
markdownExportAsHtmlint

Returns: java.lang.String

getNames(int markdownExportAsHtml)

public static Set getNames(int markdownExportAsHtml)

Parameters:

ParameterTypeDescription
markdownExportAsHtmlint

Returns: java.util.Set

getValues()

public static int[] getValues()

Returns: int[]

toString(int markdownExportAsHtml)

public static String toString(int markdownExportAsHtml)

Parameters:

ParameterTypeDescription
markdownExportAsHtmlint

Returns: java.lang.String

toStringSet(int attr)

public static String toStringSet(int attr)

Parameters:

ParameterTypeDescription
attrint

Returns: java.lang.String