preprocessor

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHeadings

func AddHeadings(folien []string, maxLevel int) []string

func GenerateTOC

func GenerateTOC(folien []string, title string, description string) string

Types

type Config

type Config struct {
	TOCTitle       string
	TOCDescription string
	EnableHeadings bool
}

func NewConfig

func NewConfig() *Config

func (*Config) Process

func (c *Config) Process(folien []string) []string

func (*Config) WithHeadings

func (c *Config) WithHeadings() *Config

func (*Config) WithTOC

func (c *Config) WithTOC(title string, description string) *Config

Jump to

Keyboard shortcuts

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