-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove use_raw_bibtex_entry option #274
Conversation
This is a follow up to the discussion in #273. |
Jekyll 4 does not render Liquid markup from included BibTeX files any longer. This obviates the need for adding `{%raw%}` around an entry's `bibtex` field. Indeed, adding it causes `{%raw%}` and `{%endraw%}` to appear in the output. This commit adds a warning if the `use_raw_bibtex_entry` key appears in the jekyll-scholar options, regardless of the value of the entry. Jekyll 4 requires at least Ruby 2.4 so increase the version numbers for Travis.
5af0d41
to
24a4256
Compare
Hi there, For instance, I cannot make {% bibliography --file something.bib %} to work anymore, it seems to pick a random .bib file among the many I have. Edit: More specifically, this does not work anymore: {% bibliography --file {{ member.bibfile }} %} I really do need to pass a variable to the option --file ! PS: I have already removed all yaml header in .bib file, which otherwise trigger errors with the {{}} bibtex entry. Any advice welcome, I cannot find anything in the changelog that would explain this. |
@dirteat it's probably best to file an issue. I'm a little surprised that ever worked though. My recollection of how Liquid markup works is that your updated example should call whichever function was registered for |
Ok, I'll open a new issue. The website is actually: https://curl.group you can check the output on "members" menu, each get his own biblio generated by |
Yes, jekyll-scholar interpolates the parameters additionally. This is probably unrelated to the raw bibtex option? Or is the whole thing |
You're right, it is unrelated to raw bibtex; I deactivated the option in scholar 5.16.0 / jekyll 3.8.6 and everything works fine. The whole thing is in a layout, not in a bibtex file. I've open a new issue about it. |
Hmm, it's possible that the fact that it is in the layout is the cause of the problem. Maybe jekyll changed something about the way the layout is evaluated. You say above that the interpolation happens just once (one file is picked) so maybe that's some kind of optimization jekyll does: render that part of the layout and then re-use the result. You would have to make sure that this part of the layout is rendered every time the |
Jekyll 4 does not render Liquid markup from included BibTeX files any
longer. This obviates the need for adding
{%raw%}
around an entry'sbibtex
field. Indeed, adding it causes{%raw%}
and{%endraw%}
toappear in the output.
This commit adds a warning if the
use_raw_bibtex_entry
key appears inthe jekyll-scholar options, regardless of the value of the entry.