Nested spoilers (fixes #5804) (#6361)

* Nested spoilers (fixes #5804)

* fix test, fail fast
This commit is contained in:
Nutomic
2026-02-26 15:33:37 +01:00
committed by GitHub
parent 80ca30eab1
commit a315dc3d3d
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ steps:
- wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /usr/share/keyrings/postgres-keyring.gpg
- apt update && apt install -y postgresql-client-18
# Run tests (if they fail, try again)
- cargo test --workspace --no-fail-fast || cargo test --workspace --no-fail-fast
- cargo test --workspace || cargo test --workspace
when: *slow_check_paths
cargo_clippy:
Generated
+3 -3
View File
@@ -4447,9 +4447,9 @@ dependencies = [
[[package]]
name = "markdown-it-block-spoiler"
version = "1.0.2"
version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ecff0b200e54209a2f2b5e583aa02b978ed6f50f538b3c4001f4a576b82285e3"
checksum = "558832b13260a7529dd67285a81f7a06b12339a104e1be3aded854e303b7e931"
dependencies = [
"itertools",
"markdown-it",
@@ -6000,7 +6000,7 @@ dependencies = [
"security-framework",
"security-framework-sys",
"webpki-root-certs",
"windows-sys 0.52.0",
"windows-sys 0.61.2",
]
[[package]]
+1 -1
View File
@@ -75,7 +75,7 @@ enum-map = { version = "2.7", optional = true }
chrono = { workspace = true }
cfg-if = { workspace = true }
clearurls = { version = "0.0.4", features = ["linkify"] }
markdown-it-block-spoiler = "1.0.2"
markdown-it-block-spoiler = "1.0.3"
markdown-it-sub = "1.0.2"
markdown-it-sup = "1.0.2"
markdown-it-ruby = "1.0.2"
+1 -1
View File
@@ -102,7 +102,7 @@ mod tests {
(
"basic spoiler",
"::: spoiler click to see more\nhow spicy!\n:::\n",
"<details><summary>click to see more</summary>how spicy!\n</details>\n",
"<details>\n<summary>\nclick to see more\n</summary>\n<p>how spicy!</p>\n</details>\n",
),
(
"escape html special chars",
+2 -2
View File
@@ -17,9 +17,9 @@ export RUST_BACKTRACE=1
export LEMMY_TEST_FAST_FEDERATION=1 # by default, the persistent federation queue has delays in the scale of 30s-5min
if [ -n "$PACKAGE" ]; then
cargo test -p $PACKAGE --features full --no-fail-fast $TEST
cargo test -p $PACKAGE --features full $TEST
else
cargo test --workspace --features full --no-fail-fast
cargo test --workspace --features full
fi
# Add this to do printlns: -- --nocapture