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
| Name | Type | Access | Description |
|---|---|---|---|
document | ldm.Document | Read | Gets the document. |
builder | MarkdownDocumentBuilder | Read | Gets the builder. |
Methods
| Signature | Description |
|---|---|
__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. |