list_export_mode property

MarkdownSaveOptions.list_export_mode property

Specifies how list items will be written to the output file. Default value is MarkdownListExportMode.MARKDOWN_SYNTAX.

@property
def list_export_mode(self) -> aspose.words.saving.MarkdownListExportMode:
    ...

@list_export_mode.setter
def list_export_mode(self, value: aspose.words.saving.MarkdownListExportMode):
    ...

Remarks

When this property is set to MarkdownListExportMode.PLAIN_TEXT all list labels are updated using Document.update_list_labels() and exported with their actual values. Such lists can be non-compatible with Markdown format and will be recognized as plain text upon importing in this case.

When this property is set to MarkdownListExportMode.MARKDOWN_SYNTAX, writer tries to export list items in manner that allows to numerate list items in automatic mode by Markdown.

Examples

Shows how to list items will be written to the markdown document.

doc = aw.Document(file_name=MY_DIR + 'List item.docx')
# Use MarkdownListExportMode.PlainText or MarkdownListExportMode.MarkdownSyntax to export list.
options = aw.saving.MarkdownSaveOptions()
options.list_export_mode = markdown_list_export_mode
doc.save(file_name=ARTIFACTS_DIR + 'MarkdownSaveOptions.ListExportMode.md', save_options=options)

See Also