Compare commits

..

2 commits

Author SHA1 Message Date
4fc4922256 add: figure plugin 2026-04-28 11:07:22 -04:00
d1a96e1362 chore: cleanup nix dev stuff 2026-04-28 11:07:11 -04:00
3 changed files with 18 additions and 10 deletions

15
prepends/quote.typ Normal file
View file

@ -0,0 +1,15 @@
// Typst version 14.0.2 outputs a block quote as a <blockquote> followed by
// a <p> for the attribution. This makes it difficult to target the
// attribution for styling. This snippet instead uses a <blockquote> and
// a <figcaption> wrapped in a <figure> block.
#show quote.where(block: true): it => {
let inner = html.elem("blockquote", it.body)
if it.attribution != none {
html.elem("figure", {
inner
html.elem("figcaption", it.attribution)
})
} else {
inner
}
}

3
rust-toolchain.toml Normal file
View file

@ -0,0 +1,3 @@
[toolchain]
channel = "stable"

View file

@ -1,10 +0,0 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
cargo
rustc
rust-analyzer
];
}