ExportAsHtml
MarkdownSaveOptions.ExportAsHtml property
Allows to specify the elements to be exported to Markdown as raw HTML. Default value is None.
public MarkdownExportAsHtml ExportAsHtml { get; set; }
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.ParagraphFormat.Alignment = ParagraphAlignment.Right;
builder.Write("Cell1");
builder.InsertCell();
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;
builder.Write("Cell2");
MarkdownSaveOptions saveOptions = new MarkdownSaveOptions();
saveOptions.ExportAsHtml = MarkdownExportAsHtml.Tables;
doc.Save(ArtifactsDir + "MarkdownSaveOptions.ExportTableAsHtml.md", saveOptions);
See Also
- enum MarkdownExportAsHtml
- class MarkdownSaveOptions
- namespace Aspose.Words.Saving
- assembly Aspose.Words