com.aspose.words
Class MarkdownExportAsHtml

java.lang.Object
    extended by com.aspose.words.MarkdownExportAsHtml

public class MarkdownExportAsHtml 
extends java.lang.Object

Utility class containing constants. Allows to specify the elements to be exported to Markdown as raw HTML.

Example:

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);

Field Summary
static final intNONE = 0
           Export all elements using Markdown syntax without any raw HTML.
static final intTABLES = 1
           Export tables as raw HTML.
 

Field Detail

NONE = 0

public static final int NONE
Export all elements using Markdown syntax without any raw HTML.

TABLES = 1

public static final int TABLES
Export tables as raw HTML.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.