- render_active_document passed the tab id as the first __setContent argument,
but the page signature starts with previewHtml, so #preview rendered the tab
id ("1", "2", "3" as tabs were opened) and the window looked blank. The call
now goes through set_content_script(), and a test pins the exact script plus
the page signature so the two cannot drift silently.
- remove register_as_default() and the winreg dependency: the app no longer
writes HKCU on launch. publish.ps1 still refreshes the .md association.
28 lines
566 B
TOML
28 lines
566 B
TOML
[package]
|
|
name = "md-preview"
|
|
version = "1.4.2"
|
|
edition = "2021"
|
|
rust-version = "1.89"
|
|
|
|
[dependencies]
|
|
wry = "0.50"
|
|
tao = "0.33"
|
|
pulldown-cmark = { version = "0.12", default-features = false, features = ["html"] }
|
|
rfd = "0.15"
|
|
notify = "7"
|
|
open = "5"
|
|
image = { version = "0.25", default-features = false, features = ["png", "ico"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
url = "2"
|
|
|
|
[target.'cfg(windows)'.build-dependencies]
|
|
winresource = "0.1"
|
|
|
|
[profile.release]
|
|
opt-level = "z"
|
|
lto = true
|
|
codegen-units = 1
|
|
strip = true
|
|
panic = "abort"
|