Skip to main content

Class: MarkdownNodeParser()

Extends

MarkdownNodeParser<Options>(nodes, options?): Promise<BaseNode<Metadata>[]>

Type Parameters

Options extends Record<string, unknown>

Parameters

nodes: BaseNode<Metadata>[]

options?: Options

Returns

Promise<BaseNode<Metadata>[]>

Defined in

packages/core/node-parser/dist/index.d.ts:61

Constructors

new MarkdownNodeParser()

new MarkdownNodeParser(): MarkdownNodeParser

Returns

MarkdownNodeParser

Inherited from

NodeParser.constructor

Defined in

packages/core/node-parser/dist/index.d.ts:8

Properties

id

id: string

Inherited from

NodeParser.id

Defined in

packages/core/schema/dist/index.d.ts:171


includeMetadata

includeMetadata: boolean

Inherited from

NodeParser.includeMetadata

Defined in

packages/core/node-parser/dist/index.d.ts:6


includePrevNextRel

includePrevNextRel: boolean

Inherited from

NodeParser.includePrevNextRel

Defined in

packages/core/node-parser/dist/index.d.ts:7

Methods

getNodesFromDocuments()

getNodesFromDocuments(documents): TextNode<Metadata>[]

Parameters

documents: TextNode<Metadata>[]

Returns

TextNode<Metadata>[]

Inherited from

NodeParser.getNodesFromDocuments

Defined in

packages/core/node-parser/dist/index.d.ts:11


getNodesFromNode()

protected getNodesFromNode(node): TextNode<Metadata>[]

Parameters

node: TextNode<Metadata>

Returns

TextNode<Metadata>[]

Defined in

packages/core/node-parser/dist/index.d.ts:63


parseNodes()

parseNodes(nodes, showProgress?): TextNode<Metadata>[]

Parameters

nodes: TextNode<Metadata>[]

showProgress?: boolean

Returns

TextNode<Metadata>[]

Overrides

NodeParser.parseNodes

Defined in

packages/core/node-parser/dist/index.d.ts:62


postProcessParsedNodes()

protected postProcessParsedNodes(nodes, parentDocMap): TextNode<Metadata>[]

Parameters

nodes: TextNode<Metadata>[]

parentDocMap: Map<string, TextNode<Metadata>>

Returns

TextNode<Metadata>[]

Inherited from

NodeParser.postProcessParsedNodes

Defined in

packages/core/node-parser/dist/index.d.ts:9