Skip to content

Commit

Permalink
bump version to 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SaswatPadhi committed Jun 12, 2023
1 parent 662c1b6 commit e15b608
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 21 deletions.
18 changes: 16 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

No changes

## [2.1.0] - 2023-06-11

### Fixed
- Resolved an infinite loop bug reported in #3
- Fixed an issue with `=` sign being subsumed into the field value `string` match.
### Changed
- Renamed `macro` token type to the standard `keyword type,
which it was earlier aliased to.
### Removed
- `docs/prismjs-bibtex.min.js` has been removed; please use from jsDeliver.


<hr>

## [2.0.1] - 2021-05-16
Expand All @@ -19,7 +31,7 @@ No changes
so the minimum version is now raised to 1.19.
- Updated usage instructions.
- Getting the versioned-JS files from jsDelivr is recommended now.
- `prismjs-bibtex.min.js` is kept only for websites that already use it.
- `docs/prismjs-bibtex.min.js` is kept only for websites that already use it.

<hr>

Expand Down Expand Up @@ -58,10 +70,12 @@ No changes



[Unreleased]: https://github.com/SaswatPadhi/prismjs-bibtex/compare/v1.0.0...HEAD
[1.0.0]: https://github.com/SaswatPadhi/prismjs-bibtex/releases/tag/v1.0.0
[1.1.0]: https://github.com/SaswatPadhi/prismjs-bibtex/releases/tag/v1.1.0
[2.0.0]: https://github.com/SaswatPadhi/prismjs-bibtex/releases/tag/v2.0.0
[2.0.1]: https://github.com/SaswatPadhi/prismjs-bibtex/releases/tag/v2.0.1
[2.1.0]: https://github.com/SaswatPadhi/prismjs-bibtex/releases/tag/v2.1.0

[Unreleased]: https://github.com/SaswatPadhi/prismjs-bibtex/compare/v2.1.0...HEAD

[IIFE style]: https://developer.mozilla.org/en-US/docs/Glossary/IIFE
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,26 @@ A [BibTeX] language extension for [PrismJS].
Simply import the `prism-bibtex.min.js` (recommended at the end of `body`):

```html
<script src="https://cdn.jsdelivr.net/npm/prismjs-bibtex@2.0.1/prism-bibtex.min.js">
<script src="https://cdn.jsdelivr.net/npm/prismjs-bibtex@2.1.0/prism-bibtex.min.js">
</script>
```

I recommend using the [SRI (Subresource Integrity)][SRI] hash as well:
```html
<script src="https://cdn.jsdelivr.net/npm/prismjs-bibtex@2.0.1/prism-bibtex.js"
integrity="sha256-+dK6uqUp/DnP6ef97s8XcoynBnGe5vM5gvBECH0EB3U="
crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/prismjs-bibtex@2.1.0/prism-bibtex.js"
integrity="sha256-A5GMUmGHpY8mVpfcaRLQFeHtmdjZLumKBOMpf81FXX0="
crossorigin="anonymous" referrerpolicy="no-referrer">
</script>
```

Remember to import the PrismJS stylesheets and scripts **before** importing this extension. For example:
Remember to import the PrismJS stylesheets and scripts **before** importing this extension.
For example:

```html
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.23.0/themes/prism-solarizedlight.min.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.23.0/prism.min.js">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-solarizedlight.min.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js">
</script>
<script src="https://cdn.jsdelivr.net/npm/prismjs-bibtex@2.0.1/prism-bibtex.min.js">
<script src="https://cdn.jsdelivr.net/npm/prismjs-bibtex@2.1.0/prism-bibtex.min.js">
</script>
```

Expand Down
5 changes: 3 additions & 2 deletions docs/acm-turing-awards.md
Original file line number Diff line number Diff line change
Expand Up @@ -3298,6 +3298,7 @@ Source: <ftp://ftp.math.utah.edu/pub/tex/bib/acm-turing-awards.bib>
integrity="sha512-/uypNVmpEQdCQLYz3mq7J2HPBpHkkg23FV4i7/WSUyEuTJrWJ2uZ3gXx1IBPUyB3qbIAY+AODbanXLkIar0NBQ==" crossorigin="anonymous">
</script>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/prism-bibtex.js"
integrity="sha256-+dK6uqUp/DnP6ef97s8XcoynBnGe5vM5gvBECH0EB3U=" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/prism-bibtex.js"
integrity="sha256-A5GMUmGHpY8mVpfcaRLQFeHtmdjZLumKBOMpf81FXX0="
crossorigin="anonymous" referrerpolicy="no-referrer">
</script>
5 changes: 3 additions & 2 deletions docs/biblatex-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -1682,6 +1682,7 @@ Source: <http://mirror.ctan.org/macros/latex/contrib/biblatex/bibtex/bib/biblate
integrity="sha512-/uypNVmpEQdCQLYz3mq7J2HPBpHkkg23FV4i7/WSUyEuTJrWJ2uZ3gXx1IBPUyB3qbIAY+AODbanXLkIar0NBQ==" crossorigin="anonymous">
</script>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/prism-bibtex.js"
integrity="sha256-+dK6uqUp/DnP6ef97s8XcoynBnGe5vM5gvBECH0EB3U=" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/prism-bibtex.js"
integrity="sha256-A5GMUmGHpY8mVpfcaRLQFeHtmdjZLumKBOMpf81FXX0="
crossorigin="anonymous" referrerpolicy="no-referrer">
</script>
5 changes: 3 additions & 2 deletions docs/broken.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ Previously led to browser being stuck on an infinite loop.
integrity="sha512-9ndS8HgVHWQq2A/kpIxygbIZQ7oljc9/AvoEv8SQDy192nAuCGSdk7OdAfCZLDkbRJLZMsrV0NXycMSLLNTWCw==" crossorigin="anonymous">
</script>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/prism-bibtex.js"
integrity="sha256-+dK6uqUp/DnP6ef97s8XcoynBnGe5vM5gvBECH0EB3U=" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/prism-bibtex.js"
integrity="sha256-A5GMUmGHpY8mVpfcaRLQFeHtmdjZLumKBOMpf81FXX0="
crossorigin="anonymous" referrerpolicy="no-referrer">
</script>

[Issue #3]: https://github.com/SaswatPadhi/prismjs-bibtex/issues/3
5 changes: 3 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,9 @@ Example from <https://tex.stackexchange.com/questions/73293/how-to-use-string-va
crossorigin="anonymous" referrerpolicy="no-referrer">
</script>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/prism-bibtex.js"
integrity="sha256-+dK6uqUp/DnP6ef97s8XcoynBnGe5vM5gvBECH0EB3U=" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/prism-bibtex.js"
integrity="sha256-A5GMUmGHpY8mVpfcaRLQFeHtmdjZLumKBOMpf81FXX0="
crossorigin="anonymous" referrerpolicy="no-referrer">
</script>

## Large Real-Life Bibliographies
Expand Down
5 changes: 3 additions & 2 deletions docs/stoc_2010-2019.md
Original file line number Diff line number Diff line change
Expand Up @@ -10315,6 +10315,7 @@ Source: <ftp://ftp.math.utah.edu/pub/tex/bib/stoc2010.bib>
integrity="sha512-/uypNVmpEQdCQLYz3mq7J2HPBpHkkg23FV4i7/WSUyEuTJrWJ2uZ3gXx1IBPUyB3qbIAY+AODbanXLkIar0NBQ==" crossorigin="anonymous">
</script>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/prism-bibtex.js"
integrity="sha256-+dK6uqUp/DnP6ef97s8XcoynBnGe5vM5gvBECH0EB3U=" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/prism-bibtex.js"
integrity="sha256-A5GMUmGHpY8mVpfcaRLQFeHtmdjZLumKBOMpf81FXX0="
crossorigin="anonymous" referrerpolicy="no-referrer">
</script>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prismjs-bibtex",
"version": "2.0.1",
"version": "2.1.0",
"description": "A language definition for BibTeX in the PrismJS syntax-highlighting framework.",
"main": "prism-bibtex.js",
"dependencies": {
Expand Down

0 comments on commit e15b608

Please sign in to comment.