rehype-citation

Rehype plugin to add citation and bibliography from bibtex files

MIT License

Downloads
61.4K
Stars
36
Committers
2
rehype-citation - v2.0.0 Latest Release

Published by timlrx about 1 year ago

What's Changed

Full Changelog: https://github.com/timlrx/rehype-citation/compare/v1.0.3...v2.0.0

rehype-citation - v1.0.3

Published by timlrx about 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/timlrx/rehype-citation/compare/v1.0.2...v1.0.3

rehype-citation - v1.0.2

Published by timlrx over 1 year ago

What's Changed

Full Changelog: https://github.com/timlrx/rehype-citation/compare/v1.0.1...v1.0.2

rehype-citation - v1.0.1

Published by timlrx over 1 year ago

What's Changed

Full Changelog: https://github.com/timlrx/rehype-citation/compare/v1.0.0...v1.0.1

rehype-citation - v1.0.0

Published by timlrx over 1 year ago

What's Changed

Full Changelog: https://github.com/timlrx/rehype-citation/compare/v0.5.0...v1.0.0

rehype-citation - v0.5.0

Published by timlrx over 1 year ago

What's Changed

  • Add support for fullnote CSL (Fix #14)
  • Sync with citation-js v0.65
  • Refactor: clean up cite.js
  • Fix multiple custom CSL not working by adding a random postfix string
  • Add new demo site
  • Ensure footnote section should be after bibliography section

Full Changelog: https://github.com/timlrx/rehype-citation/compare/v0.4.0...v0.5.0

rehype-citation - v0.4.0

Published by timlrx over 2 years ago

What's Changed

Full Changelog: https://github.com/timlrx/rehype-citation/compare/v0.3.0...v0.4.0

rehype-citation - v0.3.0

Published by timlrx over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/timlrx/rehype-citation/compare/v0.2.5...v0.3.0

rehype-citation - v0.2.5

Published by timlrx over 2 years ago

Change Log

  • reconfigured exports to explicitly export a node and browser package
  • added HTML to HAST dom alias which is used in place of parse5 for the browser package (fix #5 and minified bundle size goes down from 817kb to 634kb)
  • used microbundle to generate packages for both node and browser exports
  • define isNode variable during bundling to prevent some frameworks from complaining

Manually tested node package to work in standalone node project and next.js. Tested browser package to work in vite (esbuild and rollup) as well as nextjs.

Full Changelog: https://github.com/timlrx/rehype-citation/compare/v0.2.4...v0.2.5

rehype-citation - v0.2.4

Published by timlrx over 2 years ago

  • separate node and browser bundle
rehype-citation - v0.2.3

Published by timlrx over 2 years ago

Change Log

  • comment out unused generator to avoid regeneratorRuntime error
rehype-citation - v0.2.2

Published by timlrx over 2 years ago

Change Log

  • move csl styles from citation-js to standalone
  • keep only en-US in citation-js
  • add test for generator

Full Changelog: https://github.com/timlrx/rehype-citation/compare/v0.2.1...v0.2.2

rehype-citation - v0.2.1

Published by timlrx over 2 years ago

What's Changed

  • inline relevant citation-js mjs files
  • add bootstrap.js script to automate some of the inlining
  • update vite config
  • export Cite and rehype citation generator function as separate entry points
  • add ts-ignore to ignore ts errors for citation-js files

Full Changelog: https://github.com/timlrx/rehype-citation/compare/v0.2.0...v0.2.1

rehype-citation - v0.2.0

Published by timlrx over 2 years ago

What's Changed

  • Refactor the old code to use a generator structure
  • Add support for node and browser environment
  • Bibliography and CSL can now be automatically picked up from a file frontmatter if there is a file.data.frontmatter.bibliography or file.data.frontmatter.csl` field
  • Bibliography can either be a URL or path (in node env)
  • Use a custom fork of citation.js to reduce unused plugin and reduce bundle size
  • Add e2e test
  • Add github actions
  • Use ESM version of cite.js for a smaller bundle size
  • Fix regex to work on browser and node in build version

Full Changelog: https://github.com/timlrx/rehype-citation/compare/v0.1.2...v0.2.0

rehype-citation - v0.1.2

Published by timlrx almost 3 years ago

Change Log

  • fix: add li to permittedTags
  • fix: html code character
  • update citation js dependency
  • docs: add example.png
rehype-citation - v0.1.0

Published by timlrx almost 3 years ago

Change Log

  • fix: build process
  • fix: ignore citation like keys (begins with @), but not in bibtex file
rehype-citation - v0.0.2

Published by timlrx almost 3 years ago

Change Log

  • Release of rehype-citation
Package Rankings
Top 4.99% on Npmjs.org
Badges
Extracted from project README
GitHub Repo stars GitHub forks Twitter URL Sponsor DOI