File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ repository.workspace = true
1414cargo-fuzz = true
1515
1616[features ]
17- default = [" terminal-hyperlinks" ]
17+ default = [" terminal-support" ]
18+ terminal-support = [" dep:crossterm" , " dep:supports-hyperlinks" ]
1819terminal-hyperlinks = [" dep:supports-hyperlinks" ]
1920
2021[dependencies ]
@@ -34,7 +35,7 @@ yaml-rust2 = { workspace = true }
3435hashlink = { version = " 0.10.0" , features = [" serde_impl" ] }
3536error-message-macros = { path = " ./error-message-macros" }
3637ariadne = " 0.4"
37- crossterm = " 0.28"
38+ crossterm = { version = " 0.28" , optional = true }
3839supports-hyperlinks = { version = " 3.0" , optional = true }
3940
4041[dev-dependencies ]
Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ fn main() {
177177 "native" => writers:: native:: write ( & pandoc, & mut buf) ,
178178 "markdown" | "qmd" => writers:: qmd:: write ( & pandoc, & mut buf) ,
179179 "html" => writers:: html:: write ( & pandoc, & mut buf) ,
180+ #[ cfg( feature = "terminal-support" ) ]
180181 "ansi" => writers:: ansi:: write ( & pandoc, & mut buf) ,
181182 _ => {
182183 eprintln ! ( "Unknown output format: {}" , args. to) ;
Original file line number Diff line number Diff line change 33 * Copyright (c) 2025 Posit, PBC
44 */
55
6+ #[ cfg( feature = "terminal-support" ) ]
67pub mod ansi;
78pub mod html;
89pub mod json;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ crate-type = ["cdylib", "rlib"]
1111default = [" console_error_panic_hook" ]
1212
1313[dependencies ]
14- quarto-markdown-pandoc = { workspace = true }
14+ quarto-markdown-pandoc = { path = " ../quarto-markdown-pandoc " , default-features = false }
1515wasm-bindgen = " 0.2.89"
1616
1717# The `console_error_panic_hook` crate provides better debugging of panics by
You can’t perform that action at this time.
0 commit comments