graphlab-fr / cosma

Cosma is a document graph visualization tool. It modelizes interlinked Markdown files and renders them as an interactive network in a web interface.
https://cosma.arthurperret.fr
GNU General Public License v3.0
125 stars 4 forks source link

[Bug] Any @ sign is treated as the start of a citation key #110

Open infologie opened 6 months ago

infologie commented 6 months ago

What version of Cosma are you using?

2.4.0

On which operating system(s) did you observe the bug?

What version of the operating system are you on?

macOS 12.7.2

Actions leading to the bug

This was reported to me by Michael Piotrowski on Mastodon. Mastodon links happen to contain the @ sign. But any string with @ in a record will trigger the bug.

Bug description

When using cosma modelize --citeproc, any @ sign triggers the citation parser, even outside of citations, for instance a URL containing a @. Since the strings don't match citation keys from the bibliographic data, Cosma logs it as an error. Note that URLs don't break. So this is more a nuisance than a breaking bug.

Additional information

No response