markdown

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package markdown provides an input plugin for loading themes from markdown theme files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

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

Plugin implements the input.Plugin interface for markdown theme loading.

func New

func New() *Plugin

New creates a new markdown input plugin.

func (*Plugin) Description

func (p *Plugin) Description() string

Description returns the plugin description.

func (*Plugin) Generate

func (p *Plugin) Generate(_ context.Context, opts input.GenerateOptions) (*colour.Palette, error)

Generate creates a raw colour palette from a markdown theme file.

func (*Plugin) GetFlagHelp

func (p *Plugin) GetFlagHelp() []input.FlagHelp

GetFlagHelp returns help information for all plugin flags.

func (*Plugin) Name

func (p *Plugin) Name() string

Name returns the plugin name.

func (*Plugin) RegisterFlags

func (p *Plugin) RegisterFlags(cmd *cobra.Command)

RegisterFlags registers plugin-specific flags with the cobra command.

func (*Plugin) Validate

func (p *Plugin) Validate() error

Validate checks if the plugin has all required inputs configured.

func (*Plugin) Version

func (p *Plugin) Version() string

Version returns the plugin version.

func (*Plugin) WallpaperPath

func (p *Plugin) WallpaperPath() string

WallpaperPath returns the canonical path to the wallpaper (extracted or referenced). For external references, this is the resolved absolute path. For embedded wallpapers, this is the path to the extracted file. Implements the input.WallpaperProvider interface.

func (*Plugin) WallpaperRawPath added in v0.1.22

func (p *Plugin) WallpaperRawPath() string

WallpaperRawPath returns the original path from the theme file. For external references, this is the path as written in the theme file. For embedded wallpapers, this is the same as WallpaperPath (extracted file path). Implements the input.WallpaperProvider interface.

Jump to

Keyboard shortcuts

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