export_as_html property
MarkdownSaveOptions.export_as_html property
Allows to specify the elements to be exported to Markdown as raw HTML. Default value is MarkdownExportAsHtml.NONE.
@property
def export_as_html(self) -> aspose.words.saving.MarkdownExportAsHtml:
...
@export_as_html.setter
def export_as_html(self, value: aspose.words.saving.MarkdownExportAsHtml):
...
Examples
Shows how to export a table to Markdown as raw HTML.
doc = aw.Document()
builder = aw.DocumentBuilder(doc=doc)
builder.writeln('Sample table:')
# Create table.
builder.insert_cell()
builder.paragraph_format.alignment = aw.ParagraphAlignment.RIGHT
builder.write('Cell1')
builder.insert_cell()
builder.paragraph_format.alignment = aw.ParagraphAlignment.CENTER
builder.write('Cell2')
save_options = aw.saving.MarkdownSaveOptions()
save_options.export_as_html = aw.saving.MarkdownExportAsHtml.TABLES
doc.save(file_name=ARTIFACTS_DIR + 'MarkdownSaveOptions.ExportTableAsHtml.md', save_options=save_options)
See Also
- module aspose.words.saving
- class MarkdownSaveOptions