pypi / warehouse

The Python Package Index
https://pypi.org
Apache License 2.0
3.6k stars 968 forks source link

bibtex entry on PyPI/TestPyPI renders strikethrough element `<s>` around curly braces #12254

Closed matthewfeickert closed 2 years ago

matthewfeickert commented 2 years ago

Describe the bug

This is https://github.com/scikit-hep/pyhf/issues/2024.

On PyPI and TestPyPI the following RST

.. code:: bibtex

   @software{pyhf,
     author = {Lukas Heinrich and Matthew Feickert and Giordon Stark},
     title = "{pyhf: v0.7.0rc4}",
     version = {0.7.0rc4},
     doi = {10.5281/zenodo.1169739},
     url = {https://doi.org/10.5281/zenodo.1169739},
     note = {https://github.com/scikit-hep/pyhf/releases/tag/v0.7.0rc4}
   }

   @article{pyhf_joss,
     doi = {10.21105/joss.02823},
     url = {https://doi.org/10.21105/joss.02823},
     year = {2021},
     publisher = {The Open Journal},
     volume = {6},
     number = {58},
     pages = {2823},
     author = {Lukas Heinrich and Matthew Feickert and Giordon Stark and Kyle Cranmer},
     title = {pyhf: pure-Python implementation of HistFactory statistical models},
     journal = {Journal of Open Source Software}
   }

gets rendered out with the strikethrough element <s> around curly braces:

@software{pyhf,
  author = <s>{Lukas Heinrich and Matthew Feickert and Giordon Stark}</s>,
  title = <s>"{pyhf: v0.7.0rc4}"</s>,
  version = <s>{0.7.0rc4}</s>,
  doi = <s>{10.5281/zenodo.1169739}</s>,
  url = <s>{https://doi.org/10.5281/zenodo.1169739}</s>,
  note = <s>{https://github.com/scikit-hep/pyhf/releases/tag/v0.7.0rc4}</s>
}

@article{pyhf_joss,
  doi = <s>{10.21105/joss.02823}</s>,
  url = <s>{https://doi.org/10.21105/joss.02823}</s>,
  year = <s>{2021}</s>,
  publisher = <s>{The Open Journal}</s>,
  volume = <s>{6}</s>,
  number = <s>{58}</s>,
  pages = <s>{2823}</s>,
  author = <s>{Lukas Heinrich and Matthew Feickert and Giordon Stark and Kyle Cranmer}</s>,
  title = <s>{pyhf: pure-Python implementation of HistFactory statistical models}</s>,
  journal = <s>{Journal of Open Source Software}</s>
}

Expected behavior

I would expect that it get rendered out correctly without the <s> like it is in the project GitHub README and on the project docs.

To Reproduce

My Platform

This is not platform dependent. I've tested this on Chrome and Firefox on both Linux and Mac.

Additional context

None.

di commented 2 years ago

Hi, thanks. This looks like a valid issue, but description rendering is handled by https://github.com/pypa/readme_renderer/issues, not by PyPI itself. I'm going to close this but recommend you reopen it as an issue there.

matthewfeickert commented 2 years ago

Thanks @di! Sorry that I got the wrong project, but I very much appreciate your helpful response. Thank you for all that you and the PyPI team do for the community!