LdmMarkdownWriter
General
It converts a light_document_model.Document object to a Markdown string. Instantiate it with an optional ConversionOptions object to control conversion behaviour, then call write() with the document object. The method returns the complete Markdown representation as a Python string.
Use LdmMarkdownWriter when you need to convert a parsed Word document (obtained via Document.save() or a reader) into Markdown format programmatically. It is the internal writer invoked by the high-level Document.save() path when the target format is Markdown.
LdmMarkdownWriter és una classe en Aspose.Words FOSS per Python.
Converteix un objecte light_document_model.Document en una cadena de Marca baixa. Instantia-lo amb un object opcional ⌒ConversionOptions per controlar el comportament de conversió, després crida a ゚write() amb l’objecte documental. El mètode retorna la representació completa de marca baix com una sèrie Python.
Utilitza LdmMarkdownWriter quan necessites convertir un document de Word parsat (obtenit a través d’un lector o d’" " ‘document.save"’) en format Markdown programàticament. És l’escritor intern invocat per la ruta d ‘“high-level”" Document. save "" quan el format objectiu és MarkDown".
Propietats
| Name | Type | Access | Description |
|---|---|---|---|
options | `` | Read | Provides access to configuration settings for Markdown conversion |
Mètodes
| Signature | Description |
|---|---|
__init__(options: Optional[ConversionOptions]) | |
write(source: ldm.Document) → str | Convert source to Markdown and return the result string. |