Compare commits
2 commits
a6e30123a5
...
4fc4922256
| Author | SHA1 | Date | |
|---|---|---|---|
| 4fc4922256 | |||
| d1a96e1362 |
3 changed files with 18 additions and 10 deletions
15
prepends/quote.typ
Normal file
15
prepends/quote.typ
Normal 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
3
rust-toolchain.toml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[toolchain]
|
||||||
|
channel = "stable"
|
||||||
|
|
||||||
10
shell.nix
10
shell.nix
|
|
@ -1,10 +0,0 @@
|
||||||
{ pkgs ? import <nixpkgs> {} }:
|
|
||||||
|
|
||||||
pkgs.mkShell {
|
|
||||||
buildInputs = with pkgs; [
|
|
||||||
cargo
|
|
||||||
rustc
|
|
||||||
rust-analyzer
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue