Compare commits

...

4 Commits

Author SHA1 Message Date
Matias Fontanini
d8067dfcd1 chore: bump version to 0.10.1 2025-02-14 16:30:51 -08:00
Matias Fontanini
517bc4ebff chore: add release notes for 0.10.1 2025-02-14 16:30:51 -08:00
Matias Fontanini
9524ae34e7 fix: don't err if auto_render_languages isn't set 2025-02-14 16:27:56 -08:00
Xeonacid
72d84d5412 chore: bump sixel-rs version
Includes https://github.com/orhun/sixel-rs/pull/6 to fix build on aarch64 and riscv64.
2025-02-14 16:26:38 -08:00
5 changed files with 18 additions and 8 deletions

View File

@ -1,3 +1,10 @@
# v0.10.1 - 2025-0214
## Fixes
* Don't error out if `options` in front matter doesn't include `auto_render_languages` ([#454](https://github.com/mfontanini/presenterm/pull/454)).
* Bump sixel-rs to 0.4.1 to fix build in aarch64 and riscv64 ([#452](https://github.com/mfontanini/presenterm/pull/452)) - thanks @Xeonacid.
# v0.10.0 - 2025-02-02
## New features

6
Cargo.lock generated
View File

@ -1062,7 +1062,7 @@ dependencies = [
[[package]]
name = "presenterm"
version = "0.10.0"
version = "0.10.1"
dependencies = [
"ansi-parser",
"anyhow",
@ -1565,9 +1565,9 @@ dependencies = [
[[package]]
name = "sixel-rs"
version = "0.4.0"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7fdcaca72707076e90144c669774282aeed367998c7cc04083fbc12de861c71c"
checksum = "29059f94eafb4ace543bb8777c7e2fdac7c6aeadca9adb28ef2eab977a62f7f8"
dependencies = [
"sixel-sys",
]

View File

@ -4,7 +4,7 @@ authors = ["Matias Fontanini"]
description = "A terminal slideshow presentation tool"
repository = "https://github.com/mfontanini/presenterm"
license = "BSD-2-Clause"
version = "0.10.0"
version = "0.10.1"
edition = "2021"
[dependencies]
@ -19,7 +19,7 @@ directories = "6.0"
hex = "0.4"
flate2 = "1.0"
image = { version = "0.25", features = ["gif", "jpeg", "png", "rayon"], default-features = false }
sixel-rs = { version = "0.4", optional = true }
sixel-rs = { version = "0.4.1", optional = true }
merge-struct = "0.1.0"
itertools = "0.14"
once_cell = "1.19"

View File

@ -282,9 +282,6 @@
},
"OptionsConfig": {
"type": "object",
"required": [
"auto_render_languages"
],
"properties": {
"auto_render_languages": {
"description": "Assume snippets for these languages contain `+render` and render them automatically.",

View File

@ -135,6 +135,7 @@ pub struct OptionsConfig {
pub strict_front_matter_parsing: Option<bool>,
/// Assume snippets for these languages contain `+render` and render them automatically.
#[serde(default)]
pub auto_render_languages: Vec<SnippetLanguage>,
}
@ -509,4 +510,9 @@ mod test {
let config = KeyBindingsConfig::default();
CommandKeyBindings::try_from(config).expect("construction failed");
}
#[test]
fn default_options_serde() {
serde_yaml::from_str::<'_, OptionsConfig>("implicit_slide_ends: true").expect("failed to parse");
}
}