timlrx / rehype-citation

Rehype plugin to add citation and bibliography from bibtex files
https://rehype-citation.netlify.app
MIT License
41 stars 9 forks source link

linkCitation uses wrong brackets #28

Closed ugogon closed 1 year ago

ugogon commented 1 year ago

The current implementation always assumes that the csl style uses parentheses for the citation. But this is not always the case (e.g. acm-siggraph, ieee, ...). The link insertion replaces the old brackets with wrong brackets in 'author-date' format with a single entry.

Style: ACM Siggraph: Current implementation: SLERP [@shoemake85] -> SLERP (Shoemake 1985)

Correct: SLERP [@shoemake85] -> SLERP [Shoemake 1985]