MarkdownReader
定义于:.build/typescript/packages/readers/src/markdown.ts:9
从Markdown文件中提取文本。 返回字典,其中键为标题,值为标题之间的文本内容。
FileReader<Document>
新建 Markdown 阅读器(
removeHyperlinks?,removeImages?):MarkdownReader
定义于:.build/typescript/packages/readers/src/markdown.ts:17
boolean = true
指示是否应移除超链接。
boolean = true
指示是否应移除图像。
MarkdownReader
FileReader<Document>.constructor
markdownToTups()
Section titled “markdownToTups()”markdownToTups(
markdownText):MarkdownTuple[]
定义于:.build/typescript/packages/readers/src/markdown.ts:29
将Markdown文件转换为字典。 键是标题,值是每个标题下的文本内容。
markdownText
Section titled “markdownText”string
要转换的markdown文本。
MarkdownTuple[]
- 一个元组数组,其中每个元组包含一个标题(或空值)及其对应的文本。
removeImages()
Section titled “removeImages()”removeImages(
content):string
定义于:.build/typescript/packages/readers/src/markdown.ts:70
string
string
removeHyperlinks()
Section titled “removeHyperlinks()”removeHyperlinks(
content):string
定义于:.build/typescript/packages/readers/src/markdown.ts:75
string
string
parseTups()
Section titled “parseTups()”parseTups(
content):MarkdownTuple[]
定义于:.build/typescript/packages/readers/src/markdown.ts:80
string
MarkdownTuple[]
loadDataAsContent()
Section titled “loadDataAsContent()”loadDataAsContent(
fileContent):Promise<Document<Metadata>[]>
定义于:.build/typescript/packages/readers/src/markdown.ts:91
fileContent
Section titled “fileContent”Uint8Array
Promise<Document<Metadata>[]>
FileReader.loadDataAsContent