diff --git a/Cargo.lock b/Cargo.lock index a4ba23cf2..dfd01d8b6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -798,9 +798,9 @@ checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" [[package]] name = "hayagriva" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce91abe74c9f37ac2997dd4a09680d1e5ce1fe3bf5bd1b10ea47f8c893e46656" +checksum = "f9f97c07366b7f686741521ca63cc14baf18cea53c39b0c09873cd1d4a1b2b8c" dependencies = [ "biblatex", "ciborium", diff --git a/Cargo.toml b/Cargo.toml index 344d88931..5c1d21a15 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,7 +43,7 @@ ecow = { version = "0.2", features = ["serde"] } env_proxy = "0.4" flate2 = "1" fontdb = { version = "0.15", default-features = false } -hayagriva = "0.5" +hayagriva = "0.5.1" heck = "0.4" hypher = "0.1.4" iai = { git = "https://github.com/typst/iai", rev = "3f0f927" } diff --git a/assets/files/works_too.bib b/assets/files/works_too.bib index 8ccbe5d1b..fd80f8f5b 100644 --- a/assets/files/works_too.bib +++ b/assets/files/works_too.bib @@ -8,3 +8,10 @@ year = {2007}, publisher = {ACM New York, NY, USA} } + +@Article{Zee04, + author = {Zee, Jay}, + journal = {The Black Album}, + title = {I've got $99$ problems, I am {S}toked to say}, + year = {2004}, +} diff --git a/tests/ref/bugs/bibliography-math.png b/tests/ref/bugs/bibliography-math.png new file mode 100644 index 000000000..0ab308dc9 Binary files /dev/null and b/tests/ref/bugs/bibliography-math.png differ diff --git a/tests/typ/bugs/bibliography-math.typ b/tests/typ/bugs/bibliography-math.typ new file mode 100644 index 000000000..2f3dabcde --- /dev/null +++ b/tests/typ/bugs/bibliography-math.typ @@ -0,0 +1,4 @@ +#set page(width: 200pt) + +@Zee04 +#bibliography("/files/works_too.bib", style: "mla")