streamdown-config

Crates.iostreamdown-config
lib.rsstreamdown-config
version0.1.3
created_at2025-12-31 20:22:08.02972+00
updated_at2025-12-31 21:04:24.861237+00
descriptionConfiguration loading and management for streamdown
homepage
repositoryhttps://github.com/fed-stew/streamdown-rs
max_upload_size
id2015290
size58,170
(janfeddersen-wq)

documentation

README

streamdown-config

Configuration loading and management for the streamdown streaming markdown renderer.

Overview

This crate handles configuration:

  • Config file loading - TOML configuration from standard paths
  • Style computation - HSV-based color theme generation
  • Default values - Sensible defaults for all settings
  • Runtime configuration - Programmatic configuration API

Configuration Paths

Configuration is loaded from (in order of precedence):

  1. $XDG_CONFIG_HOME/streamdown/config.toml
  2. ~/.config/streamdown/config.toml
  3. ~/.streamdown.toml

Example Configuration

[style]
hue = 0.6        # Base hue (0.0-1.0)
margin = 2       # Left margin

[features]
clipboard = true   # OSC 52 clipboard
savebrace = true   # Save code blocks to temp files

Usage

[dependencies]
streamdown-config = "0.1"
use streamdown_config::Config;

let config = Config::load()?;
println!("Margin: {}", config.style.margin);

Part of Streamdown

This is a component of streamdown-rs, a streaming markdown renderer for modern terminals.

License

MIT

Commit count: 0

cargo fmt