[package]
edition = "2024"
name = "mdbook-plotly"
version = "0.1.2-alpha"
authors = ["TickPoints <tickpoints@outlook.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An mdbook preprocessor that renders plot code blocks (e.g., ```plot) into interactive or static charts during book build."
readme = "README.md"
keywords = [
"markdown",
"mdbook",
]
license = "MIT"
repository = "https://github.com/TickPoints/mdbook-plotly"
[features]
default = [
"sync",
"default-handlers",
]
default-handlers = ["plotly-html-handler"]
full-handlers = [
"plotly-svg-handler",
"plotly-html-handler",
]
plotly-backed = ["plotly/static_export_default"]
plotly-html-handler = []
plotly-svg-handler = ["plotly-backed"]
sync = ["dep:rayon"]
[[bin]]
name = "mdbook-plotly"
path = "src/main.rs"
[dependencies.clap]
version = "4.5"
features = ["cargo"]
[dependencies.colog]
version = "1.4"
[dependencies.json5]
version = "1.3"
[dependencies.log]
version = "0.4"
[dependencies.mdbook-preprocessor]
version = "0.5"
[dependencies.plotly]
version = "0.14"
[dependencies.pulldown-cmark]
version = "0.13"
default-features = false
[dependencies.pulldown-cmark-to-cmark]
version = "22.0"
default-features = false
[dependencies.rayon]
version = "1.11"
optional = true
[dependencies.serde]
version = "1.0"
[dependencies.serde_json]
version = "1.0"
[profile.release]
opt-level = "z"
lto = true