Skip to main content

Crate streamdown_config

Crate streamdown_config 

Source
Expand description

Streamdown Config

This crate handles configuration loading and management for streamdown, supporting TOML configuration files.

§Overview

Configuration is loaded from platform-specific locations:

  • Linux: ~/.config/streamdown/config.toml
  • macOS: ~/Library/Application Support/streamdown/config.toml
  • Windows: %APPDATA%\streamdown\config.toml

§Example

use streamdown_config::Config;

// Load config with defaults
let config = Config::load().unwrap();

// Or load with an override file
let config = Config::load_with_override(Some("./custom.toml".as_ref())).unwrap();

Structs§

ComputedStyle
Pre-computed ANSI color strings.
Config
Main configuration structure.
FeaturesConfig
Feature flags configuration.
HsvMultiplier
HSV multiplier for color transformations.
StyleConfig
Style configuration.