The CSL specification has a recommendation for automatically linking titles when the citation style does not explicitly render the URL.  See also this discussion on GitHub.

How hard would it be for Pandoc to support this recommendation, at least in the HTML writer?  Would this be a desirable change?  

I poked a round a bit in the source (for instance here), but it wasn't clear to me where I might hook in to add this functionality.  Pointers to the correct location would be appreciated!  I might be able to put together a PR.

My use case is Hakyll, where I want to use Pandoc to generate a bibliography, but I want a hyperlinked title instead of raw URLs.  I could hack something together to modify the HTML manually, but since there's an official CSL recommendation, it might be a nice feature to have in Pandoc itself.

Thanks,
Ben

_____

For reference, here is a snippet of the mentioned spec:

If the bibliography entry for an item does not render any of the above identifiers (doi,pmcid,pmid,url), then set the anchor of the link as the item title. If title is not rendered, then set the anchor of the link as the full bibliography entry for the item. Set the target of the link as one of the following, in order of priority:

  1. doi: prepend with "https://doi.org/"
  2. pmcid: prepend with "https://www.ncbi.nlm.nih.gov/pmc/articles/"
  3. pmid: prepend with "https://www.ncbi.nlm.nih.gov/pubmed/"
  4. url: output as is

If the item data does not include any of the above identifiers, do not include a link.


--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1370960d-9f5f-4da0-8078-741ac861c3fbn%40googlegroups.com.