parse

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractContentFromMarkdown

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

func ExtractYAMLBlocks added in v0.4.55

func ExtractYAMLBlocks(markdownText string) ([]string, error)

ExtractYAMLBlocks scans a markdown string and returns the contents of fenced YAML/YML code blocks. It preserves the inner code content without the enclosing fences.

Types

type CodeBlock

type CodeBlock struct {
	Code     string
	Language string
}
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