All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
No changes
2.1.0 - 2023-06-11
- Resolved an infinite loop bug reported in #3
- Fixed an issue with
=
sign being subsumed into the field valuestring
match.
- Renamed
macro
token type to the standard `keyword type, which it was earlier aliased to.
docs/prismjs-bibtex.min.js
has been removed; please use from jsDeliver.
2.0.1 - 2021-05-16
- Some lookbehind matches don't seem to work with PrismJS 1.15 - 1.17.1, so the minimum version is now raised to 1.19.
- Updated usage instructions.
- Getting the versioned-JS files from jsDelivr is recommended now.
docs/prismjs-bibtex.min.js
is kept only for websites that already use it.
2.0.0 - 2021-05-16
- Minor fixes to regex patterns for
macro
(previouslytag
) andspecial
token types.
- Updated the regex pattern for
string
(previouslyvalue
) token type to subsume the regex patterns fornumber
andchar
token types. - Token types and aliases are more intuitive and meaningful now.
- Removed
number
andchar
token types -- they are both part of thestring
token type now. Previouslystring
was changed tochar
to prevent autolinking, but autolinking within strings appears to work correctly in majority of the cases. It only rarely fails when latex macros appear within strings.
- The extension now adheres to IIFE style, which is now enforced in PrismJS (see PrismJS/prism#2867).
1.1.0 - 2019-09-13
- Compatibility with
autolinker
plugin -- disabled autolinking except within comments.
- Removed hardcoded list of "known" types and field names -- all field names are treated the same way now.
1.0.0 - 2019-03-17
- Added initial regexes for parsing BibTeX files in PrismJS framework.
- Published package to npm.