markdown

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PreprocessMarkdown

func PreprocessMarkdown(src string) string

func RenderMarkdown

func RenderMarkdown(md string, th themes.Theme, width int) string

Types

type CodeBlock

type CodeBlock struct {
	Lang      string
	Content   string
	Preview   string
	LineCount int
	Line      int
	StartCol  int
	EndCol    int
	StartLine int
	EndLine   int
}

func ExtractCodeBlocks

func ExtractCodeBlocks(md, rendered string) []CodeBlock
type DocLink struct {
	Label        string
	RawText      string // original markdown link text, used for line detection
	URL          string
	IsInternal   bool
	ResolvedPath string
	NavIdx       int
	Line         int // 0-based line in rendered content (-1 if not found)
	StartCol     int
	EndCol       int
}
func ExtractLinks(md, currentFile, rendered string, entries []navigation.NavEntry) []DocLink

Jump to

Keyboard shortcuts

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