Juris-M / citeproc-js-docs

Documentation for citeproc-js
13 stars 14 forks source link

How to customize citeproc-js to render hyperlinks #26

Closed gallardo closed 4 years ago

gallardo commented 5 years ago

Could you @fbennett extend on how to customize / hook the processor to render hyperlinks? We are using citeproc-java to render bibliographies. Our users are requesting URLs and DOIs to be hyperlinked.

If Manubot runs citeproc-js in a custom environment, this is possible. It is not documented, but if I recall correctly the hooks for it are in the source file formats.js.

Originally posted by @fbennett in https://github.com/Juris-M/citeproc-js-docs/issues/15#issuecomment-327910995

(I'm also aware of https://github.com/citation-style-language/schema/issues/145, but that is still open and we cannot wait.)

gallardo commented 4 years ago

Answering to myself:

CSL.Engine.opt.development_extensions.wrap_url_and_doi = true