From c897e0393c359e851c1d52346600adb801432ba1 Mon Sep 17 00:00:00 2001 From: Huw Diprose Date: Tue, 23 Apr 2024 16:14:44 +0100 Subject: [PATCH] Dependency - Redcarpet 3.5.1 -> 3.6.0 Offers two fixes: * Match fence char and length when matching closing fence in fenced code blocks (Fixes #208) * Fix anchor generation on titles with ampersands (Fixes #696). And three improvements: * Avoid warnings running on Ruby 3.2+ (See #721). * Consider
as a block-level element (See #702). * Properly provide a third argument to the table_cell callback indicating whether the current cell is part of the header or not. The previous implementation with two parameters is still supported (See #604 and #605). Of particular interest to me here is the removal of Ruby 3.2 warnings which are becoming relevant as tech docs apps are upgraded See changelong: https://github.com/vmg/redcarpet/releases/tag/v3.6.0 --- CHANGELOG.md | 4 ++++ govuk_tech_docs.gemspec | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb7f54be..dadcd1f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +Updates to dependencies including: + +- Redcarpet to v3.6.0, removing warnings that appear in Tech Docs sites running Ruby 3.2+ + ## 3.5.0 ### New features diff --git a/govuk_tech_docs.gemspec b/govuk_tech_docs.gemspec index 7b0035a6..c7dcd127 100644 --- a/govuk_tech_docs.gemspec +++ b/govuk_tech_docs.gemspec @@ -47,7 +47,7 @@ Gem::Specification.new do |spec| spec.add_dependency "middleman-syntax", "~> 3.2.0" spec.add_dependency "nokogiri" spec.add_dependency "openapi3_parser", "~> 0.9.0" - spec.add_dependency "redcarpet", "~> 3.5.1" + spec.add_dependency "redcarpet", "~> 3.6.0" spec.add_development_dependency "byebug" spec.add_development_dependency "capybara", "~> 3.32"