Skip to content

Commit

Permalink
Dependency - Redcarpet 3.5.1 -> 3.6.0
Browse files Browse the repository at this point in the history
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 <center> 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
  • Loading branch information
huwd committed Apr 23, 2024
1 parent 5994807 commit c897e03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion govuk_tech_docs.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c897e03

Please sign in to comment.