zotero-better-bibtex: BBT does not escape # in first argument of \href in note

Debug log ID

I am not willing to provide any personal data

What happened?

When a note has a URL in it, BBT does not escape the # character in \href’s first argument:

Note in Zotero:

https://www.example.com/#foo

Created item:

@misc{TheKey,
  title = {TheTitle},
  author = {{TheAuthor}},
  date = {2023},
  note = {\href{https://www.example.com/#foo}{https://www.example.com/\#foo}}
}

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 22 (15 by maintainers)

Commits related to this issue

Most upvoted comments

Looks like I owe you an apology @2017MK2017. ~I’ll get you a fix later today.~ this is going to take a little longer. My bibtex generator is largely stateless, so “is used as an argument” is going to take some tinkering.

@njbart many thanks, I don’t know how you unearth these things.