Class: MarkdownReader
Extract text from markdown files. Returns dictionary with keys as headers and values as the text between headers.
Extends
Constructors
new MarkdownReader()
new MarkdownReader(
removeHyperlinks
?,removeImages
?):MarkdownReader
Parameters
• removeHyperlinks?: boolean
= true
Indicates whether hyperlinks should be removed.
• removeImages?: boolean
= true
Indicates whether images should be removed.
Returns
Overrides
Source
packages/llamaindex/src/readers/MarkdownReader.ts:18
Properties
_removeHyperlinks
private
_removeHyperlinks:boolean
Source
packages/llamaindex/src/readers/MarkdownReader.ts:11
_removeImages
private
_removeImages:boolean
Source
packages/llamaindex/src/readers/MarkdownReader.ts:12
Methods
loadData()
Parameters
• filePath: string
Returns
Promise
<Document
<Metadata
>[]>
Inherited from
Source
packages/llamaindex/src/readers/type.ts:17
loadDataAsContent()
loadDataAsContent(
fileContent
):Promise
<Document
<Metadata
>[]>