MarkdownExportAsHtml
Contents
[
Hide
]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
Field | Description |
---|---|
NONE | Export all elements using Markdown syntax without any raw HTML. |
TABLES | Export tables as raw HTML. |
length |
Methods
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:
Parameter | Type | Description |
---|---|---|
markdownExportAsHtmlName | java.lang.String |
Returns: int
fromNames(Set markdownExportAsHtmlNames)
public static int fromNames(Set markdownExportAsHtmlNames)
Parameters:
Parameter | Type | Description |
---|---|---|
markdownExportAsHtmlNames | java.util.Set |
Returns: int
getName(int markdownExportAsHtml)
public static String getName(int markdownExportAsHtml)
Parameters:
Parameter | Type | Description |
---|---|---|
markdownExportAsHtml | int |
Returns: java.lang.String
getNames(int markdownExportAsHtml)
public static Set getNames(int markdownExportAsHtml)
Parameters:
Parameter | Type | Description |
---|---|---|
markdownExportAsHtml | int |
Returns: java.util.Set
getValues()
public static int[] getValues()
Returns: int[]
toString(int markdownExportAsHtml)
public static String toString(int markdownExportAsHtml)
Parameters:
Parameter | Type | Description |
---|---|---|
markdownExportAsHtml | int |
Returns: java.lang.String
toStringSet(int attr)
public static String toStringSet(int attr)
Parameters:
Parameter | Type | Description |
---|---|---|
attr | int |
Returns: java.lang.String