inukshuk / jekyll-scholar

jekyll extensions for the blogging scholar
MIT License
1.13k stars 101 forks source link

Single link for multi-citation #45

Open andriusvelykis opened 10 years ago

andriusvelykis commented 10 years ago

When using multi-citation e.g. {% cite ruby microscope %}, the output HTML has only a single link to the first item in citations, as indicated in the README:

<a href="#ruby">(Flanagan &amp; Matsumoto 2008; Shaughnessy 2013)</a>

It would be nice to have support for multiple links - one for each citation. As discussed further in #41, the citations are rendered by cite processor and there needs to be a way to hook/hack into it.

Regarding "how it should look", I think one solution would be to always hook into the citeproc and add links for the cite item, but not parentheses, e.g. (Flanagan & Matsumoto 2008; Shaughnessy 2013) or [1, 2].

(<a href="#ruby">Flanagan &amp; Matsumoto 2008</a>; <a href="#microscope">Shaughnessy 2013</a>)

For single-cite items it would also change, becoming (Flanagan & Matsumoto 2008) or [1].

(<a href="#ruby">Flanagan &amp; Matsumoto 2008</a>)
inukshuk commented 10 years ago

Sounds good to me!

Especially your point that it would make sense to move the link inside the parentheses for single citations goes to show that hooking into the cite rendering is the best approach here.

reitzig commented 8 years ago

Any progress (on the horizon) for this?

inukshuk commented 8 years ago

No, citeproc has no support for arbitrary hooks yet and no one's currently working on this as far as I know.

leotrs commented 5 years ago

Almost four years after the last comment, is there any chance of revisiting this any time soon?