typst / biblatex

A Rust crate for parsing and writing BibTeX and BibLaTeX files.
Apache License 2.0
120 stars 15 forks source link

Bibtex containing unbalanced dollar symbol in `url` #53

Open qres opened 2 months ago

qres commented 2 months ago

Description

When using a BibTex bibliography, unbalanced dollar symbols in the url field result in an error failed to parse BibLaTeX file (bibliography.bib:9: unexpected end of file).

Typst:

@key

#bibliography("bibliography.bib")

BibTex:

@article{key,
  author = {A. Name},
  journal = {Journal},
  number  = {1},
  title = {Title},
  volume = {2},
  year = {1234},
  comment = {3\$},
  url = {example.com?A=$B}
}

Escaping the dollar symbol with "\$", which is possible in other fields like comment, would change the url.

typst --version
typst 0.11.0 (2bf9f95d)

Reproduction URL

No response

Operating system

Linux

Typst version