zepinglee / citeproc-lua

A Lua implementation of the Citation Style Language (CSL)
MIT License
62 stars 7 forks source link

A html span tag is printed when an extra pair of brackets is used in the bib file. #61

Closed whcjimmy closed 2 months ago

whcjimmy commented 2 months ago

Describe the bug When appying an extra pair of brackets in the bib file, the parsing result is incorrect. As figured, a html span tag is printed.

Additional information

To Reproduce

\RequirePackage{filecontents}

\begin{filecontents*}{test.bib}
@misc{BAMF_2022, 
    author = {{Bundesamt für Migration und Flüchtlinge}},
    title = {Curriculum für einen bundesweiten Orientierungskurs},
    url={https://www.bamf.de/SharedDocs/Anlagen/DE/Integration/Integrationskurse/Kurstraeger/KonzepteLeitfaeden/curriculum-orientierungskurs-pdf.html}, 
    year={2017}, 
    urldate = {2024-04-26},
}
\end{filecontents*}

\documentclass{article}         

% Customize Bibliography Style
\usepackage{citation-style-language}
\cslsetup{style = apa}
\addbibresource{test.bib}  % or example.bib or example.yaml

\begin{document}

\nocite{*}
\printbibliography

\end{document}

Screenshots

image
zepinglee commented 2 months ago

This bug has been resolved in the latest version (v0.4.9). You may consider upgrading the MacTeX/TeX Live distribution, or installing the package from the repository (i.e., checking out the repo and run l3build install which installs it to "$(kpsewhich -var-value TEXMFHOME)").

Screenshot 2024-04-26 at 20 17 32
whcjimmy commented 2 months ago

Thank you for your help. I got what I need!