Compare commits

..

No commits in common. "4fc4922256843875b2c832ebcd4bf51cbd87afd6" and "a6e30123a58960a72db44ac2f3e657aa6d56fbf6" have entirely different histories.

3 changed files with 10 additions and 18 deletions

View file

@ -1,15 +0,0 @@
// 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
}
}

View file

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

10
shell.nix Normal file
View file

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