[package]
license = "Apache-2.0"
name = "kigi-markdown"
version.workspace = true
edition.workspace = true
authors = ["xAI"]
description = "Streaming markdown renderer for terminal UIs"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }

[dependencies]
anstyle = { workspace = true }
anstyle-lossy = { workspace = true }
anstyle-syntect = { workspace = true }
html-escape = { workspace = true }
linkify = { workspace = true }
pulldown-cmark = { workspace = true }
ratatui = { workspace = true }
supports-color = { workspace = true }
syntect = { workspace = true }
two-face = { workspace = true }
textwrap = { workspace = true }
unicode-width = { workspace = true }
url = { workspace = true }
kigi-markdown-core = { workspace = true }

[dependencies.crossterm]
workspace = true
features = ["event-stream", "bracketed-paste"]
optional = true

[dependencies.kigi-ratatui-textarea]
workspace = true
optional = true

[dev-dependencies]
criterion = { workspace = true }
pretty_assertions = { workspace = true }

[[bin]]
name = "md-table-test"
path = "bin/md_table_test.rs"
required-features = ["playground"]

[[bin]]
name = "md-mermaid-test"
path = "bin/md_mermaid_test.rs"
required-features = ["playground"]

[features]
default = []
playground = ["dep:crossterm", "dep:kigi-ratatui-textarea"]

[[bench]]
name = "bench"
harness = false
