MarkdownReaderContext

MarkdownReaderContext

Overview

MarkdownReaderContext is a class in Aspose.Words FOSS for Python. Inherits from: _StyleMixin, _ListMixin.

Drives Markdown block-tree events into a fresh LDM Document.

This class provides 5 methods for working with MarkdownReaderContext objects in Python programs. Available methods include: __init__, close, insert_image, open, write_text. All public members are accessible to any Python application after installing the Aspose.Words FOSS for Python package. Properties: builder, document.

Properties

NameTypeAccessDescription
documentldm.DocumentReadGets the document.
builderMarkdownDocumentBuilderReadGets the builder.

Methods

SignatureDescription
__init__(base_dir: Optional[Path])Calls init(base_dir) on this MarkdownReaderContext instance.
open(block: Block)Calls open(block) on this MarkdownReaderContext instance.
close(block: Block)Calls close(block) on this MarkdownReaderContext instance.
write_text(text: str)Calls write_text(text) on this MarkdownReaderContext instance.
insert_image(block: LinkTextBlock)Embed a real Shape for a local, readable image or an inline base64 data URI;
    otherwise fall back to raw source text. |

See Also