Documentation
¶
Index ¶
- type MarkdownStreamParser
- func (p *MarkdownStreamParser) GetSupportedTypes() []string
- func (p *MarkdownStreamParser) Parse(ctx context.Context, content []byte, metadata map[string]any) (*core.Document, error)
- func (p *MarkdownStreamParser) ParseStream(ctx context.Context, r io.Reader, metadata map[string]any) (<-chan *core.Document, error)
- func (p *MarkdownStreamParser) Supports(contentType string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MarkdownStreamParser ¶
type MarkdownStreamParser struct {
// contains filtered or unexported fields
}
MarkdownStreamParser reads a markdown file and yields documents split roughly by top-level headers.
func DefaultMarkdownStreamParser ¶ added in v1.1.3
func DefaultMarkdownStreamParser(splitLevel int) *MarkdownStreamParser
func (*MarkdownStreamParser) GetSupportedTypes ¶
func (p *MarkdownStreamParser) GetSupportedTypes() []string
func (*MarkdownStreamParser) Parse ¶
func (p *MarkdownStreamParser) Parse(ctx context.Context, content []byte, metadata map[string]any) (*core.Document, error)
Parse implements core.Parser interface.
func (*MarkdownStreamParser) ParseStream ¶
func (*MarkdownStreamParser) Supports ¶
func (p *MarkdownStreamParser) Supports(contentType string) bool
Click to show internal directories.
Click to hide internal directories.