From 1c6141c131f554c925829fd0508e3df489326014 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Thu, 9 Apr 2026 19:06:59 +0200 Subject: [PATCH] Update lexxy to 0.9.5.beta (#2820) * Update lexxy to 0.9.5.beta * Fix syntax highlight controller for lexxy 0.9.5.beta The highlightAll export was renamed to highlightCode. --------- Co-authored-by: Mike Dalessio --- Gemfile | 2 +- Gemfile.lock | 10 +++++----- Gemfile.saas.lock | 10 +++++----- .../controllers/syntax_highlight_controller.js | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Gemfile b/Gemfile index 1ae97bfa4..b073e67c2 100644 --- a/Gemfile +++ b/Gemfile @@ -27,7 +27,7 @@ gem "geared_pagination", "~> 1.2" gem "rqrcode" gem "rouge" gem "jbuilder" -gem "lexxy", "0.9.2.beta" +gem "lexxy", "0.9.5.beta" gem "image_processing", "~> 1.14" gem "platform_agent" gem "aws-sdk-s3", require: false diff --git a/Gemfile.lock b/Gemfile.lock index 1ca42bedd..b06660cf0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -15,7 +15,7 @@ GIT GIT remote: https://github.com/rails/rails.git - revision: 12e24eaf2f0a9613e015653f013dd131317d9bf5 + revision: 75f9e28379ac7418b82fa950cfa81f6147275308 branch: main specs: actioncable (8.2.0.alpha) @@ -46,7 +46,7 @@ GIT rack-session (>= 1.0.1) rack-test (>= 0.6.3) rails-dom-testing (~> 2.2) - rails-html-sanitizer (~> 1.6) + rails-html-sanitizer (~> 1.7) useragent (~> 0.16) actiontext (8.2.0.alpha) action_text-trix (~> 2.1.16) @@ -61,7 +61,7 @@ GIT builder (~> 3.1) erubi (~> 1.11) rails-dom-testing (~> 2.2) - rails-html-sanitizer (~> 1.6) + rails-html-sanitizer (~> 1.7) activejob (8.2.0.alpha) activesupport (= 8.2.0.alpha) globalid (>= 0.3.6) @@ -254,7 +254,7 @@ GEM logger (~> 1.6) letter_opener (1.10.0) launchy (>= 2.2, < 4) - lexxy (0.9.2.beta) + lexxy (0.9.5.beta) rails (>= 8.0.2) lint_roller (1.1.0) logger (1.7.0) @@ -518,7 +518,7 @@ DEPENDENCIES jbuilder kamal letter_opener - lexxy (= 0.9.2.beta) + lexxy (= 0.9.5.beta) mission_control-jobs mittens mocha diff --git a/Gemfile.saas.lock b/Gemfile.saas.lock index fc8ec7916..9c095750a 100644 --- a/Gemfile.saas.lock +++ b/Gemfile.saas.lock @@ -64,7 +64,7 @@ GIT GIT remote: https://github.com/rails/rails.git - revision: 12e24eaf2f0a9613e015653f013dd131317d9bf5 + revision: 75f9e28379ac7418b82fa950cfa81f6147275308 branch: main specs: actioncable (8.2.0.alpha) @@ -95,7 +95,7 @@ GIT rack-session (>= 1.0.1) rack-test (>= 0.6.3) rails-dom-testing (~> 2.2) - rails-html-sanitizer (~> 1.6) + rails-html-sanitizer (~> 1.7) useragent (~> 0.16) actiontext (8.2.0.alpha) action_text-trix (~> 2.1.16) @@ -110,7 +110,7 @@ GIT builder (~> 3.1) erubi (~> 1.11) rails-dom-testing (~> 2.2) - rails-html-sanitizer (~> 1.6) + rails-html-sanitizer (~> 1.7) activejob (8.2.0.alpha) activesupport (= 8.2.0.alpha) globalid (>= 0.3.6) @@ -367,7 +367,7 @@ GEM logger (~> 1.6) letter_opener (1.10.0) launchy (>= 2.2, < 4) - lexxy (0.9.2.beta) + lexxy (0.9.5.beta) rails (>= 8.0.2) lint_roller (1.1.0) logger (1.7.0) @@ -724,7 +724,7 @@ DEPENDENCIES jbuilder kamal letter_opener - lexxy (= 0.9.2.beta) + lexxy (= 0.9.5.beta) mission_control-jobs mittens mocha diff --git a/app/javascript/controllers/syntax_highlight_controller.js b/app/javascript/controllers/syntax_highlight_controller.js index cfaf93ba1..9dd82f959 100644 --- a/app/javascript/controllers/syntax_highlight_controller.js +++ b/app/javascript/controllers/syntax_highlight_controller.js @@ -1,8 +1,8 @@ import { Controller } from "@hotwired/stimulus" -import { highlightAll } from "lexxy" +import { highlightCode } from "lexxy" export default class extends Controller { connect() { - highlightAll() + highlightCode() } }