MarkdownFileReader

MarkdownFileReader

Overview

MarkdownFileReader 是Python的Aspose.Words FOSS中的一个类.

读取Markdown (.md) 文件,每行产生一个段落.

这个类提供了在Python程序中与MarkdownFileReader对象工作的5种方法. 有的方法包括: __init__, load_bytes, load_file, load_stream, to_light_document. 在安装Python包的Aspose.Words FOSS后,所有公众成员都可以访问任何 Python 应用程序.

Methods

SignatureDescription
__init__()
load_file(filepath: Union[str, Path])从 .md 文件上传 文件路径.
load_stream(stream: BinaryIO)输入由二进制流.
load_bytes(data: bytes)输入原始字节.
to_light_document()ldm.Document建立一个 light_document_model. 从加载的 Markdown 中创建文件.

See Also

 中文