markdown

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package markdown implements the markdown chunker from docs/document-chunking.md: front matter parsed into document fields, sections segmented at headings, oversized sections split at top-level block boundaries, undersized sibling sections merged, fences and tables never split.

Index

Constants

View Source
const Version = 1

Version identifies boundary-affecting behavior. Bump on any change that can move a cut -- goldmark upgrades that shift the AST count too.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chunker

type Chunker struct {
	// contains filtered or unexported fields
}

Chunker chunks CommonMark (plus tables) markdown.

func New

func New() *Chunker

New returns a markdown chunker.

func (*Chunker) Chunk

func (c *Chunker) Chunk(_ string, content []byte) (*chunk.Result, error)

Chunk implements chunk.Chunker.

func (*Chunker) Strategy

func (c *Chunker) Strategy() string

Strategy implements chunk.Chunker.

func (*Chunker) Version

func (c *Chunker) Version() int

Version implements chunk.Chunker.

Jump to

Keyboard shortcuts

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