Skip to content
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.

Releases: Zettlr/Citr

v1.2.2

23 Jan 15:18
Compare
Choose a tag to compare
  • Fixed the return types on the validators from Boolean to boolean.
  • The TypeScript target is now ES2019, because es6 does not support the Array.prototype.includes()-method we were using.
  • Improve error message (@tobiasdiez).

v1.2.1

11 Sep 13:33
Compare
Choose a tag to compare
  • Fixed a logical error where activating strict mode would actually use the loose mode while parsing a single citation.
  • Fixed a problem where citation parts with no commas after the citekey would be reported as false and hence not parsed correctly.

v1.2.0

04 Jul 21:06
Compare
Choose a tag to compare
  • Refactored the code base to be more maintainable and streamlined.
  • Added better tests to achieve 100 % code coverage.
  • Changed signature of extractCitations utility function. It now also accepts a strict flag (default: false) to retain strict behaviour.
  • Citr.parseSingle() now respects the strict-flag internally when validating the provided citation ID of a full square-bracket-citation (see the changelog for 1.1.0 on what this means).

v1.1.0

25 Oct 22:29
Compare
Choose a tag to compare
  • Changed signature of validateCitationID utility function. As of now, it will validate against a broader set of characters that requires the encoding to be set to UTF-8, as it will now also see as valid Unicode characters from non-latin scripts, such as Ethiopian, Japanese, or Chinese. This will make the citation IDs more vulnerable to encoding errors, but is to be preferred (see the reasoning of John McFarlane here). Additionally, Citr is meant as a pivot between any Markdown citation representations and a citeproc processor, such as citeproc-js or pandoc-citeproc. That means Citr shouldn't focus too much on validating the IDs themselves, as much as making sure that it can process the citations and convert them to CSL JSON. To restore the old behaviour, you need to call the functions using the legacy flag ("strict" as it will accept less characters as valid). See README for implementation details.

v1.0.3

07 Jul 14:25
Compare
Choose a tag to compare
  • parseSingle now accepts single citekey-only citations (such as @Autor2015) without the need to enclose them in square-brackets.

v1.0.2

07 Jul 14:20
Compare
Choose a tag to compare
  • parseSingle now accepts single citekey-only citations (such as @Autor2015) without the need to enclose them in square-brackets.

v1.0.1

10 Jun 19:47
Compare
Choose a tag to compare
Removed excess debug code

v1.0.0

10 Jun 17:19
Compare
Choose a tag to compare

Initial Release.