Bump katex from 0.8.0 to 0.9.0 (#17580)

* Bump katex from 0.8.0 to 0.9.0

Bumps [katex](https://github.com/glebm/katex-ruby) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/glebm/katex-ruby/releases)
- [Changelog](https://github.com/glebm/katex-ruby/blob/main/CHANGES.md)
- [Commits](https://github.com/glebm/katex-ruby/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: katex
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update test to "definitely invalid" syntax

Previously, \\c was invalid. However, it is now parseable for whatever reason.
This adds an unterminated { to raise a syntax error.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andy Z <17884966+Zhao-Andy@users.noreply.github.com>
This commit is contained in:
dependabot[bot] 2022-05-05 16:40:31 -04:00 committed by GitHub
parent 0c28820847
commit d96638fffa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 5 additions and 5 deletions

View file

@ -54,7 +54,7 @@ gem "jbuilder", "~> 2.11" # Create JSON structures via a Builder-style DSL
gem "js-routes", "~> 2.2" # Brings Rails named routes to javascript
gem "jsonapi-serializer", "~> 2.2" # Serializer for Ruby objects
gem "kaminari", "~> 1.2" # A Scope & Engine based, clean, powerful, customizable and sophisticated paginator
gem "katex", "~> 0.8.0" # This rubygem enables you to render TeX math to HTML using KaTeX. It uses ExecJS under the hood
gem "katex", "~> 0.9.0" # This rubygem enables you to render TeX math to HTML using KaTeX. It uses ExecJS under the hood
gem "liquid", "~> 5.3" # A secure, non-evaling end user template engine with aesthetic markup
gem "metainspector", "~> 5.12" # To get and parse website metadata for Open Graph rich objects
gem "nokogiri", "~> 1.13" # HTML, XML, SAX, and Reader parser

View file

@ -248,7 +248,7 @@ GEM
tzinfo
eventmachine (1.2.7)
excon (0.92.2)
execjs (2.7.0)
execjs (2.8.1)
exifr (1.3.9)
factory_bot (6.2.0)
activesupport (>= 5.0.0)
@ -451,7 +451,7 @@ GEM
activerecord
kaminari-core (= 1.2.2)
kaminari-core (1.2.2)
katex (0.8.0)
katex (0.9.0)
execjs (~> 2.7)
knapsack_pro (3.2.1)
rake
@ -1016,7 +1016,7 @@ DEPENDENCIES
js-routes (~> 2.2)
jsonapi-serializer (~> 2.2)
kaminari (~> 1.2)
katex (~> 0.8.0)
katex (~> 0.9.0)
knapsack_pro (~> 3.2.1)
launchy (~> 2.5)
liquid (~> 5.3)

View file

@ -28,7 +28,7 @@ RSpec.describe KatexTag, type: :liquid_tag do
end
it "generates Katex errors" do
content = "\\c = \\pm\\sqrt{a^2 + b^2}"
content = "c = \\pm\\sqrt{a{^2 + b^2}"
rendered = generate_katex_liquid(content).render
expect(rendered).to include("ParseError: KaTeX parse error: ")
end

Binary file not shown.

BIN
vendor/cache/execjs-2.8.1.gem vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
vendor/cache/katex-0.9.0.gem vendored Normal file

Binary file not shown.