{"repo":"timlrx/rehype-citation","free":true,"listed":false,"github":"https://github.com/timlrx/rehype-citation","clone":"git clone https://github.com/timlrx/rehype-citation.git","description":"Rehype plugin to add citation and bibliography from bibtex files","language":"JavaScript","stars":83,"topics":["markdown","mdx","rehype","rehype-plugin","citations","bibliography","bibtex"],"license":"MIT","category":"productivity","readme_excerpt":"Rehype-Citation rehype plugin to nicely format citations in markdown documents and insert bibliography in html format. It is meant to be used as a server side plugin and neatly integrates citeproc-js and citation-js within the remark-rehype ecosystem. Parsing of citations and all the wonderful regexes are adapted from Zettlr. It supports both normal citations (such as [@foo]) and in-text citation (such as @foo), as well as author-date, numerical, and note styles. Note styles is only compatible with Github Formatted Markdown (GFM). It is recommended to run remark-gfm before rehype-citation to ensure all footnote elements are correctly formatted. API and options follows very closely to Rmarkdown and Pandoc Examples - Citations with Bibliography - Suppress Bibliography - Custom CSL - Footnote style - Link Citations - Tooltips Installation This package is ESM only: Node 12+ is needed to use it and it must be import ed instead of require d. Usage If you are using the plugin in a node environment, import from rehype-citation/node . For browser environments, import from rehype-citation/browser . The following files are exported: generator , generator function. Can be used to generate a rehype citation plugin. Takes in a citation-js Cite class. cite , a citation-js Cite instance. Add your own CSL / locales before passing in to the plugin generator . rehype-citation , re-exports the above 2 packages with a pre-configured rehype-citation plugin ready to use. Importing from rehype-citat","default_branch":null,"files":null,"tree":[],"storefront":"/r/timlrx","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/timlrx/rehype-citation/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}