parse

package
v0.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractContentFromMarkdown

func ExtractContentFromMarkdown(markdownText string) ([]interface{}, error)

Types

type CodeBlock

type CodeBlock struct {
	Code     string
	Language string
}

type ExtractCodeBlocksStep

type ExtractCodeBlocksStep struct{}

func (*ExtractCodeBlocksStep) Start

type ExtractJSONStep

type ExtractJSONStep struct{}

ExtractJSONStep is a step that extracts JSON blocks from the given string.

func (*ExtractJSONStep) Close

func (e *ExtractJSONStep) Close(ctx context.Context) error

func (*ExtractJSONStep) Start

func (e *ExtractJSONStep) Start(ctx context.Context, input string) (*steps.StepResult[[]string], error)
type Header struct {
	Text  string
	Level int
}

type Image

type Image struct {
	Destination []byte
	Title       []byte
}
type Link struct {
	Destination []byte
	Title       []byte
}

type List

type List struct {
	Entries []string
}

type Paragraph

type Paragraph struct {
	Text string
}

type ParseMarkdownStep

type ParseMarkdownStep struct{}

type QuotedText

type QuotedText struct {
	Text string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL